• Advertisement


This topic is now archived and is closed to further replies.

Mouse Coordinate Transformation

This topic is 5991 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all, i know this topic has been discussed but i have a little twist to throw in.. I want to basicaly throw out the Y coordinate.. i want the X and Z world coordinates of X and Y screen point. Ive tried and swapping the Y and Z world coords do not do the trick =) Im looking for an effect similar to the one used in the Trainz Surveyor program at http://www.auran.com/koolthingz/trainz/moviez.htm .. the Y coordinate is based on the heightmap at the current mouse position (trivial).. The problem is the transformation of the z coordinate.. Does anyone have any insight on this, i know i am to use glUnproject ive used it in the past, but for this effect im assuming there are quite a few more steps or calculations. Thanks! Nat

Share this post

Link to post
Share on other sites

  • Advertisement