🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How openGL transform world coordinates into window coordinates??

Started by
0 comments, last by Promag 24 years ago
I want to know how openGL transform world coordinates into window coordinates?? How he get the z buffer. I need this information urgently. Please help. Thanx in advance. PROgrammer
Advertisement
well, you have to take into consideration the camera transformation. (the roll, pitch, and yaw) I think the generic formula for world to camera transformation is :
 -1   -1   -1   -1T  * R  * R  * R   =World Coordinates        x     y     z   

kinda sloppy, but that's the camera to world transformation. using a matrix makes it easier. I don't know exactly how OpenGL does it, but this is one way how it's done.

JoeMont001@aol.com / Polarisoft.n3.net


Edited by - Julio on July 5, 2000 5:09:16 PM

Edited by - Julio on July 5, 2000 5:10:11 PM
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911

This topic is closed to new replies.

Advertisement