PDA

View Full Version : eye space to object space



Lev
11-10-2001, 03:33 PM
Hello!

I'd like to convert coordinates from object space to eye space and back. How do I do that?

Thanks in advance,
-Lev

SirKnight
11-10-2001, 06:30 PM
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