Jump to content
  • Advertisement


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


OpenGL Clicks on screen->opengl

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

I''m writing a teeny little RTS, and it involves a camera floating above a little 3D island, directing units around. Right now, I direct units around using a grid. (player presses "G" and grid slides on to screen. You give orders on this screen) sort of like the map in urban assault. I was wondering if there''s an /easy/ way to transfer a click on the screen to a 3D coordinate, to see what object It hits? I originally thought of using raycasting, to send a ray out from wherever the click was on the screen, until it hit an object, but that''s to slow (and my code sucks too, so, :-) )

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!