Jump to content
  • Advertisement
Sign in to follow this  
yifli82

OpenGL a question on glTexGen

This topic is 4279 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

Hi all, I'm kinda confused with how to specify the params p1, p2, p3, p4 for GL_EYE_PLANE. The document says the texture generation function is g = p1'*xe + p2'*ye + p3'*ze + p4'*we( xe, ye, ze and we are vertex coordinates in eye space ) where (p1' p2' p3' p4') = (p1, p2, p3, p4) * inverse(M) (M is opengl modelview matrix) so I guess the params p1, p2, p3 and p4 I specify are in eye space (otherwise why do we have to multiply them by the inverse of opengl modelview matrix? ) If I was correct above, then (p1' p2' p3' p4') would be in object space. But then multiplying eye-space vertex coordinates( xe, ye, ze, we ) does not make sense to me. Can anyone explain that to me? Thanks

Share this post


Link to post
Share on other sites
Advertisement
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!