OpenGL picking
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
February 09, 2003 06:40 PM
If I was you, I''d consider writing my own trace/selection code.
February 09, 2003 06:41 PM
If I was you, I''d consider writing my own trace/selection code.
http://www.lighthouse3d.com/opengl/picking/
It''s quite simple but it points you in the right direction...
It''s quite simple but it points you in the right direction...
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
Dustin Davis
Owner / CEO
Programmers Unlimited
www.Programmers-Unlimited.com
Dustin DavisOwner / CEOProgrammers Unlimitedwww.Programmers-Unlimited.com
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement