Re: GLJPanel in Lion
Posted by Wade Walker on Aug 14, 2011; 6:07pm
URL: https://forum.jogamp.org/GLJPanel-in-Lion-tp3250682p3254015.html
You might print out the contents of the model view projection matrix that's visible inside the shader, to see if it's different in the GLCanvas and GLJPanel cases (and to see if it differs from the matrix you used for the GL_QUADs). If the matrix shows up different in the shader, it could be a driver bug is scrambling the matrix contents somehow. That might explain how GL_QUADs could look correct, but the shader could be wrong.
Alternately, GLJPanel could somehow be changing the matrix between when you draw your GL_QUADs and when you invoke the shader. You could put breakpoints in GLJPanel.java to see if that's happening (you'd have to build JOGL to do that, though, since the default JOGL build doesn't contain debug information).