Hello Guest

SimpleDrawElements from lwjgl3-demos not working as expected

  • 3 Replies
  • 4185 Views
Hi, I'm testing the demos inside the repo (https://github.com/LWJGL/lwjgl3-demos/), but I'm having a problem running SimpleDrawElements.
The window shows up, but it's completely red (the color set with glClearColor) and it's not showing the triangles.

The java class I'm talking about is the following:
https://github.com/LWJGL/lwjgl3-demos/tree/master/src/org/lwjgl/demo/opengl

The code is exactly the last one in the repo.

Can you help me?

*

Kai

Re: SimpleDrawElements from lwjgl3-demos not working as expected
« Reply #1 on: July 09, 2016, 16:35:11 »
What OS are you on and what graphics card and driver version?
I can actually reproduce the issue on an Ubuntu 14.04 x64 VirtualBox VM on a Windows 7 x64 host.
The triangle appears when resizing the window for the first time.
Also, I see the text "libEGL warning: DRI2: failed to authenticate" on stderr. Do you see this, too?
This might be another effect of the bugs described here:
- https://github.com/LWJGL/lwjgl3/issues/205
- https://github.com/glfw/glfw/issues/793
« Last Edit: July 09, 2016, 16:40:13 by Kai »

Re: SimpleDrawElements from lwjgl3-demos not working as expected
« Reply #2 on: July 09, 2016, 17:12:04 »
Hi, I'm on Mac OS X 10.10.5 right now, and I'm using the Intel Iris graphics card (macbook pro retina 13" early 2015). I tested it even on my MacBook Pro mid 2012 with an Nvidia 650M, same stuff.
I use OpenGL 3.3 with C++ on both macs and I've never had this problem.

However, I confirm that the triangle appears after the first resize, but nothing shows up in the console
« Last Edit: July 09, 2016, 18:44:26 by danhc »

*

Kai

Re: SimpleDrawElements from lwjgl3-demos not working as expected
« Reply #3 on: July 09, 2016, 17:25:16 »
Did you also use GLFW natively? You should be getting the same issue when you port the demo to native GLFW.