Skip to main content
gamedev.net
🔒 Locked

Window Coordinates

Started by Dave007 2 replies 500+ views
Original Post
Dave007
Dave007
Hello! I have a point with X, Y, Z coordinates and I need to get it''s window coordinates X, Y, then do some manipulations with them to get X'' and Y'' and then trasform them back with the same Z value. Anybody know how to do this? Thnx ----------- Dave
--------Dave[ Math Studio ] A Computer Algebra System
Dave007
Dave007
I''m not sure if it''d work due to the perspecive, transformations and so on. Sorry ... I forgot to mention - X, Y, Z are untresformed ... but OK, consider I tranform them by rotation, trans and scale. How to deal with perspective?
--------Dave[ Math Studio ] A Computer Algebra System
johnnie2
johnnie2
Look into gluProject() and gluUnProject().

____________"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.