Jump to content
  • Advertisement

Archived

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

Jjoe

OpenGL picking

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

Does anyone know of a good tutorial on picking? My questions are how and what should I store in my linked list and how to I compare that region with x and y coordinates that I am getting from the mouse. The only tutorials I''m seeing are in 3D and I''m unable to follow them at this point! Any help would be greatly appreciated. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
If I was you, I''d consider writing my own trace/selection code.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If I was you, I''d consider writing my own trace/selection code.

Share this post


Link to post
Share on other sites
Use the tutorial from gametutorials.com, it helped me learn picking. To be honest, there is like 3 commands that you use and they are butt simple.

Dustin Davis
Owner / CEO
Programmers Unlimited
www.Programmers-Unlimited.com

Share this post


Link to post
Share on other sites
Ah, but those 3 commands provide resolution limits. Unless I missed something when reading the docs, that uses per-object identifications.

Try using that for a terrain mesh (as with issuing orders in a RTS game). In order to get any real accuracy, a name for each triangle will have to used.

What you use depends on what you need.
Resolution (and, often speed, esp w/ multiple checks/frame) -> custom
Ease of use -> built in

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!