Original Post
Hey, it''s me again.
Finally understand what needs to be done to get texture projection working, and one of the most important steps is getting the reverse of the modelview matrix.....
I''ve tried reversing the transformations I perform on the modelview matrix (and putting them in the texture matrix, of course), and it looks alright, but whenever the camera rotates, the spotlight sort of moves a little....
I''ve also tried using the transpose of the modelview matrix, but it must not be completely orthogonal, so it gives the same sort of wonky effect on the spot light.....
I guess I need to take the true inverse of the modelview matrix, but I''m yet to find some decent code to find the inverse of a matrix... can anyone help? Or does anyone have any cool tricks to quickly finding the inverse of the modelview matrix?
-Mr.Oreo