[osg-users] Draw Instanced intersections

Bruno Oliveira bruno.manata.oliveira at gmail.com
Tue Jan 3 01:55:02 PST 2017


Hi TianZJ, Thanks for the quick answer.

I checked the intersector, but intersector->getIntersections() returns no
intersections at all.



2017-01-03 9:32 GMT+00:00 tianzjyh <tianzjyh at 126.com>:

> Hi, Oliveira,
>     You can check the intersections of your intersector(e.g.
> LineSegmentIntersector::Intersection), and you will find they contain an
> "osg::NodePath", which means the whole path of the node(e.g. matrix
> transform nodes upon the drawable instance).
>
>
> --
>
>
> Cheers,
> ---
> TianZJ
>
> At 2017-01-03 16:58:16, "Bruno Oliveira" <bruno.manata.oliveira at gmail.com>
> wrote:
>
> Hello,
>
> I'm implementing a draw instanced optimized scene. This is for drawing a
> set of polygons.
>
> Previously I was creating a drawable for each polygon, but now I am using
> draw instancing. With one drawable per polygon I can easily use osg
> intersectors for computing scene intersections. But how can I perform scene
> intersections with draw instanced objects and get, for instance,
> intersected instance IDs?
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170103/b9885e0e/attachment-0003.htm>


More information about the osg-users mailing list