Jump to content
  • Advertisement

Archived

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

DebonaireHero

Picking with a selection buffer in Orthographic View

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

Using NeHe''s tutorial on picking objects with a selection buffer (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=32), I tried to incorporate this into my Orthographic game. However, no matter how much I tinkered with the settings, the best I could get it to do was to recognize that there was an object under my cursor but not to return the correct ID for that object. No matter where I clicked (provided there was an object there) it would return 1. I understand that I could find a way to solve picking mathematically, but I was wondering if there was any way to do it with glRenderMode(GL_SELECT). Thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement

  • 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!