🎉 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??
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
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 :
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
-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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement