Try as I might, I have not figured out a way to take the native screen coordinates(i.e. 460,536) and translate them to OpenGL coordinates(i.e. -4.6,7.4). Is there a method or algorithm for doing this?
-Taphreek
The only way I can think of is to use glOrtho, altough Im guessing that's not what you want. I don't feel like explaining it, but this NeHe tutorial uses it. Its pretty useful for UI and HUD stuff - just not for much else (that I can think of) in a 3D game.
Edited by - kranomano on April 28, 2001 2:15:15 PM
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more