glTexGen vs. the texture matrix

Started by
0 comments, last by _the_phantom_ 18 years, 12 months ago
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?
Advertisement
define 'screws up'?
images and code are handy as well [smile]

This topic is closed to new replies.

Advertisement