Hello!
I’d like to convert coordinates from object space to eye space and back. How do I do that?
Thanks in advance,
-Lev
Hello!
I’d like to convert coordinates from object space to eye space and back. How do I do that?
Thanks in advance,
-Lev
The modelview puts coords into eye space and the modelview inverse will put them back. Now normals are a little trickier than say vertices, to take a normal from eye to object space you use the inverse transpose modelview. I beleive the Red Book and the OpenGL faq on this web site talks all about this kind of thing also.
-SirKnight