PDA

View Full Version : Determine specific quad from intersection


Novakin
02-12-2016, 06:05 AM
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?

Jeff
02-19-2016, 01:25 AM
I don't see any way to get this information directly but I'll check with a developer in case I'm missing something.