Jump to content
  • Advertisement
Sign in to follow this  
Xarium

glTexGen vs. the texture matrix

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

I'm trying to use glTexGen* to generate tex coords for a mesh. It works perfectly when the texture matrix is the identity but screws up when it is anything else. The resulting tex-coords seem to be a function of the matrix involved but I can't figure out the relationship. Given a set of tex-coords (generated by me) ranging from 0 -> 1 across the mesh it works exactly as expected with any texture matrix I specify. Enable tex-gen and it screws up. I can't imagine that glTexGen is only useful when the texture matrix is identity because this would prevent all kinds of useful things - so I assume I'm doing something wrong. Does anybody know any "gotchas" relating to glTexGen vs. texture matrices?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!