CastleBravo
03-10-2011, 02:01 PM
Hey there. I'm having a hard time with one of my projects. I'm using ARB assembly shaders to render my character models, very simple effects, and in fact I'm only using a vertex shader and passing off data to the fixed pipeline.
My problem is that when I try to use built-in states like state.matrix.mvp, state.matrix.texture[0], or anything alike, it seems to cause problems on certain graphics cards, like on latest nVidia cards state.matrix.mvp seems to be completely empty, or on ATI cards using the texture matrix also produces odd results.
I tried to use my own uniforms, sending the modelview, projection and texture matrixes to the program.local values, but while things like my point lights, the texture matrix and the global illumination work fine, I just can't upload the modelview and the projection matrix. Basically every time I bind the shader I get those two using glGetFloatv and input them into the shader using LocalParameter4fvARB, but the results are either weird, or I don't see anything.
Has anyone had anything like this? I've been messing with this for a whole day and I feel like tearing my hair out. ARB shaders are my last hope for smooth lighting effects, wich I won't get with GL_LIGHTING.
Thanks for your help.
My problem is that when I try to use built-in states like state.matrix.mvp, state.matrix.texture[0], or anything alike, it seems to cause problems on certain graphics cards, like on latest nVidia cards state.matrix.mvp seems to be completely empty, or on ATI cards using the texture matrix also produces odd results.
I tried to use my own uniforms, sending the modelview, projection and texture matrixes to the program.local values, but while things like my point lights, the texture matrix and the global illumination work fine, I just can't upload the modelview and the projection matrix. Basically every time I bind the shader I get those two using glGetFloatv and input them into the shader using LocalParameter4fvARB, but the results are either weird, or I don't see anything.
Has anyone had anything like this? I've been messing with this for a whole day and I feel like tearing my hair out. ARB shaders are my last hope for smooth lighting effects, wich I won't get with GL_LIGHTING.
Thanks for your help.