gdx2d
gdx2d copied to clipboard
Broken on MacOS
Shaders complain that version 130 is not supported. I had the impression it had been fixed before...
Was fixed in 540cbd699f661f5f7df06b73adc540cdc75e196e However the student was probably not using the latest code but the release one.
This is how the demo selector looks like:
Tested on the Pierre's Mac OS X El Capitan (10.11.4)
The Swing layout has been fixed in dda41a04fe40057f21cf7be394053db9be77537f, but the canvas is still not working on Mac :(
No idea what to do as I don't have any Mac to test. This is probably hard to fix.
Swing seems to not be very platform independent :( This was the first layout issue. For the second, it will be hard to solve it, yes. The OpenGL canvas is not display on Mac (tested on OS X 10.11.3
latest).
I think we should set this issue for a next milestone. A Mac guy should help us to solve this. I tried a quick fix but I did not get better results.
Currently, a Mac user can launch every demo individually, but not using the demo selector.
I agree. The problem being mac specific, we can't solve it without a Mac.
On Thu, 28 Apr 2016 at 22:02 Christopher [email protected] wrote:
I think we should set this issue for a next milestone. A Mac guy should help us to solve this. I tried a quick fix but I did not get better results.
Currently, a Mac user can launch every demo individually, but not using the demo selector.
— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/hevs-isi/gdx2d/issues/118#issuecomment-215545129
Just providing some information,might help.
Im a mac user,cant run the demo too.
When I use JDK8 (oracle jdk) ,the window looks like below.The canvas was misplaced,and only display grey.
As we know,apple only provide java up to java6,so any later jdk was provided by oracle.And oracle jdk removed all heavyweight components(even awt turned into lightweight),so anything rely on heavyweight component wont work under oracle jdk on mac(like LwjglAWTCanvas).
So I change the project to apple jdk6(which still have heavyweight components),thinking this may solve the problem.But after I run,I get this:

The canvas was not misplaced,but still shows nothing.Which makes me really confused. The console shows the following info when using jdk6:
2017-01-02 08:33:43.665 java[17091:87589438] 08:33:43.664 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
[gdx2d]: gdx2d-core v1.2.1, libgdx v1.5.6 | mui, chn, mei, pim (c) 2012-2016
[gdx2d]: Fragment shader 'res/lib/circle_aa.fp' loaded.
[gdx2d]: Vertex shader 'res/lib/default.vs' loaded.
[gdx2d]: Shader message - WARNING: Output of vertex shader 'v_color' not read by fragment shader
WARNING: Output of vertex shader 'vTexCoord' not read by fragment shader
WARNING: Output of vertex shader 'vSurfacePosition' not read by fragment shader
The console shows the following info when using jdk8:
2017-01-02 08:38:05.907 java[17127:87627414] 08:38:05.907 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
[gdx2d]: gdx2d-core v1.2.1, libgdx v1.5.6 | mui, chn, mei, pim (c) 2012-2016
[gdx2d]: Fragment shader 'res/lib/circle_aa.fp' loaded.
[gdx2d]: Vertex shader 'res/lib/default.vs' loaded.
[gdx2d]: Shader message - WARNING: Output of vertex shader 'v_color' not read by fragment shader
WARNING: Output of vertex shader 'vTexCoord' not read by fragment shader
WARNING: Output of vertex shader 'vSurfacePosition' not read by fragment shader