• Advertisement
Sign in to follow this  

glTexGen vs. the texture matrix

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