Re: Problem with GL4 and glUniformMatrix4dv-Method
Posted by adi on Feb 01, 2013; 1:20pm
URL: https://forum.jogamp.org/Problem-with-GL4-and-glUniformMatrix4dv-Method-tp4028096p4028102.html
No, i sent 2 double Matrices (in this case a model-view matrix and a projection matrix)
and i take 2 double Matrices in the shader.
Before i sent this matrices from the opengl client i have controlled all values in Eclipse
in debug-modus, before i call the glUniformMatrix4dv-Method, they are the same values
how the the hard-coded matrices in the shader.
Also i make a cast's to floats in the shader,
gl_Position = mat4(model*view*projection)*vec4(in_Vertex,1.0);
or
gl_Position = mat4(modelViewProjectionMatrix)*vec4(in_Vertex,1.0);
so that the correct type is not a problem.
P.s. I have not said, the problem does come from jogl.
An implementing bug in my nividea driver can be the problem. I don't no.
The problem exist only with double matrices.