noeska
29-12-2009, 11:13 PM
System: Vista/WindowsXP | Ati HD4800 driver version 09.12
Compiler/IDE: Delphi2009
Libraries: OpenGL 3.x / GLSL
On making a bones example it struggled upon the fact that my normalMatrix is not willing to be bound anymore.
This is a part of the shader:
#version 150
uniform mat3 normalMatrix;
uniform mat4 boneMatrices[2];
uniform mat4 projectionMatrix;
uniform mat4 modelViewMatrix;
This is how i call it:
g_projectionLocation := glslsimpleprog.GetUniformLocation('projectionMatri x');
g_modelViewLocation := glslsimpleprog.GetUniformLocation('modelViewMatrix ');
g_normalMatrixLocation := glslsimpleprog.GetUniformLocation('normalMatrix');
g_location_boneMatrices_0 := glslsimpleprog.GetUniformLocation('boneMatrices[0]');
g_location_boneMatrices_1 := glslsimpleprog.GetUniformLocation('boneMatrices[1]');
All other matrices do work and so has the normalMatrix
Here is the complete code:
http://www.noeska.net/downloads/ogl3bones1.zip
What am i missing here?
Compiler/IDE: Delphi2009
Libraries: OpenGL 3.x / GLSL
On making a bones example it struggled upon the fact that my normalMatrix is not willing to be bound anymore.
This is a part of the shader:
#version 150
uniform mat3 normalMatrix;
uniform mat4 boneMatrices[2];
uniform mat4 projectionMatrix;
uniform mat4 modelViewMatrix;
This is how i call it:
g_projectionLocation := glslsimpleprog.GetUniformLocation('projectionMatri x');
g_modelViewLocation := glslsimpleprog.GetUniformLocation('modelViewMatrix ');
g_normalMatrixLocation := glslsimpleprog.GetUniformLocation('normalMatrix');
g_location_boneMatrices_0 := glslsimpleprog.GetUniformLocation('boneMatrices[0]');
g_location_boneMatrices_1 := glslsimpleprog.GetUniformLocation('boneMatrices[1]');
All other matrices do work and so has the normalMatrix
Here is the complete code:
http://www.noeska.net/downloads/ogl3bones1.zip
What am i missing here?