glslang: Does it work for you?

Has anyone gotten any glslang code working in JOGL? I am trying to port the ogl2brick example and all I get is a white unshaded brick instead of a brick that looks like a brick. My machine (Mac OS X with GeForce FX 5200, IIRC) has all of the required extensions.

My other machine is a PowerBook G4 with a Radeon 9700, so it should work, too. I also get a white brick with it.

Yes I’ve done lots of things with GLSL. It is impossible to tell what is wrong with your attempt since there are numerous possibilities. NeHe for example has nice tutorials on the subject maybe you can find some answers from there.

Thanks for the info. I dug around on NeHe but only saw an article referencing GLSL. There wasn’t any sample code in C/C++ or JOGL. Is that what you were referring to?

I was looking at the Aviatrix code but that one requires you to get their whole schebang. I would prefer to see a very minimal implementation.

My main question was if it worked for anyone (particularly OS X users) since I just want to make sure the libraries are up to speed (I figured they were). I think I will bang my head on this some more and then maybe post code if I get it looking somewhat respectable. If any of you have a very simple glslang demo you would like to share, I would be glad to see it. :slight_smile:

You can try the GLSL demos in the LWJGL test package (org.lwjgl.test.opengl.shaders). Should be really easy to port to JOGL.