Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Problems emulating the texture matrix stack

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

Hey there. I''m using projective texturing to render a reflective water surface. Up until now I have just been throwing my transformations onto the texture matrix stack, sending it my texCoords and getting the desired result. Now I need to do all of this manually for reasons that are too boring to go into. So I generate my transformation matrix, transform my coordinates and send those to GL - but it doesn''t work. The scaling is wrong, and the result looks slightly skewed too. However, I know for a fact that my matrix is fine as I can generate it myself and then give that to GL send it my coords as usual and it works fine, but as soon as I try to do the final matrix * coord opereation myself, it all goes pear shaped. I''ve had a look in the spec, but I can''t find anything. I was wondering if GL performs any kind of normalisation of the texture matrix? Does it do anything else strange with the transformation? Hmph - I''m not sure that made much sense. Anyway, any help would be appreciated.

Share this post

Link to post
Share on other sites

  • 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!