Jump to content
  • Advertisement


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


getting mouse 3d position in ortho view

This topic is 5620 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

for my map editor for an RTS game I have a heightmap terrain grid i need to find the grid point that is closest to the mouse point. i''m using an orthographic view that is rotated on a slight angle. when viewing the map straight down the screen coords are the same as the world coordinates. but when its on an angle, things change a bit, so i need a way to determine which point is directly below the mouse point whatever angle its on. i''ve had a look at the gluUnproject functions but i couldnt figure out how to get these to work.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!