Skip to main content
gamedev.net
🔒 Locked

Screen coordinates

Started by Taphreek 0 replies 350+ views
Original Post
Taphreek
Taphreek
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
-Taphreek
Kranomano
Kranomano
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.

Sign in to reply to this topic.