View Single Post
Old 02-12-2016, 06:05 AM
Novakin Novakin is offline
Join Date: Dec 2015
Posts: 9
Determine specific quad from intersection

I have a very big object that consists of a lot of quads. In Vizard I'm creating this object by calling viz.startLayer(viz.QUADS), then a couple hundred (or thousand) viz.vertex calls, then viz.endLayer (splitting this up into multiple layers is unfortunately not an option for me in this context).

Now I would like to perform a line intersection on this big object and get the specific quad that was intersected. Is this possible in Vizard?

When I do an intersection now, the lowest level intersected object I get back is the big object. I could do my own math to make a line-plane intersection on each individual quad in the big object, but it seems to be duplicate work, seeing as Vizard / OpenGL already knows under the hood which quad was intersected, right? Is there any way of getting this information?
Reply With Quote