Re: questions about picking
Posted by scott+jogamp@vorthmann.org on Jan 07, 2020; 5:30am
URL: https://forum.jogamp.org/questions-about-picking-tp4040211p4040245.html
Thank you, Julien.
I finally understood how to create and use the Ray, and my picking is now working correctly, at least for objects where I can use AABBoxes (e.g. connector balls). For struts and panels, I don't think the AABBox approach will give good results, so I'll just do my own triangle intersection tests, assuming I can figure that out.
Surprisingly, I can pick from among 100,000 objects without appreciable delay, so I guess I can see why OpenGL doesn't want to support it any more. I'm sure most game engines do it with physics engines anyway.