Hi everyone.
I’m currently working on a little project of mine which is similar ray tracing in that I want to calculate ray intersections with objects in the scene, but my light rays do crazy things (although that’s not really relevant to what i’m stuck on).
I’m quite new to jogl and have only been using opengl for a few months now so I may have just missed something.
What I would like to do is fill a scene with hundreds / thousands of spheres (at the moment i’ve been using glutSolidSphere), and then store the vertices for all polygons so that I can iterate through all the vertices in the scene and test for intersections with a given ray.
What is the best way to go about this?
Thanks for the help.