Jump to content
  • Advertisement


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


Picking with a selection buffer in Orthographic View

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

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!