Jump to content
  • Advertisement
Sign in to follow this  

eyelinear texture mapping with glsl and nvidia linux driver 8756

This topic is 4446 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, this is pritty much my first post on gamedev.net =D im having some problem with my shadowmaping. im using automatic eyelinear texture maping to map my shadowmap on the gameworld. this works fine. at least it did in the past. last week when i updated my driver to the latest 8756 driver everything went crazy. if i disable my glsl program and do the eyelinearmaping with fixed fuction everything works fine. but when i try to do it with a glsl vertexshader it doesnt work. i have tried lots of different ways to get it to work. the only thing that works is. vec4 kShadowUV = gl_Vertex * kEyePlaneMatrix; where kEyePlaneMatrix is the eyeplanematrix for the shadowmap. this works .. for objects located at 0 0 0 but surprisingly not for other objects. if i try to do like this kVertex = gl_ModelViewMatrix * gl_Vertex; vec4 kShadowUV = kVertex * kEyePlaneMatrix; it doesnt work. my old code that did work before driver 8756 just did it like this. kVertex = gl_ModelViewMatrix * gl_Vertex; vec4 kShadowUV = kVertex * mat4(gl_EyePlaneS[3],l_EyePlaneT[3],gl_EyePlaneR[3],gl_EyePlaneQ[3]); but that doesnt work anymore. =(. i tried to use 3dlabs glsl generator. and it generated something like this. kShadowUV.s = dot( kVertex, gl_EyePlaneS[3] ); kShadowUV.t = dot( kVertex, gl_EyePlaneT[3] ); kShadowUV.p = dot( kVertex, gl_EyePlaneR[3] ); kShadowUV.q = dot( kVertex, gl_EyePlaneQ[3] ); but that didt work either =/. so whats wrong =(. has anyone else experienced any problems like this with the latest nvidia linux driver? again it worked fine on earlier drivers and also it works fine without any vertexshader. also it works fine on the latest windows drivers to as far as i know.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!