Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread Sebastian Messerschmidt
Hi Bruno, There is simply no geometry in the scenegraph to intersect (or strictly speaking there is only one drawable) Instancing takes away the load from the CPU to the GPU,which on the OSG-side means to put the instanced geometries into one drawable containing the instancing information.

Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread tianzjyh
Hi, Oliveira, there maybe many reasons that why no intersection. I cannot give you advise without more information. u can check about examples within OSG source code, e.g. "osgintersection". -- Cheers, --- TianZJ At 2017-01-03 17:55:02, "Bruno Oliveira"

Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread Bruno Oliveira
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 : > Hi, Oliveira, > You can check the intersections of your intersector(e.g. >

Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread tianzjyh
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