Re: [osg-users] LineOfSight intersection returning geometry

2016-02-16 Thread Robert Osfield
HI Tony, On 16 February 2016 at 05:00, Tony Vasile wrote: > By the way does OpenSceneGraph have a separate mask for intersection as well > as rendering? I have some geometry that I don't want to intersect but do want > to be rendered. The NodeVisitor base class has a

Re: [osg-users] LineOfSight intersection returning geometry

2016-02-15 Thread Tony Vasile
Thanks for the info. By the way does OpenSceneGraph have a separate mask for intersection as well as rendering? I have some geometry that I don't want to intersect but do want to be rendered. Tony V -- Read this topic online here:

Re: [osg-users] LineOfSight intersection returning geometry

2016-02-04 Thread Robert Osfield
Hi Tony, You only need to set the mask on node at the top of the subgraph for the whole subgraph to be culled from a traversal. Robert. On 4 February 2016 at 00:43, Tony Vasile wrote: > So if you have a large piece of geometry like terrain or ocean is simply a > case of

Re: [osg-users] LineOfSight intersection returning geometry

2016-02-03 Thread Tony Vasile
So if you have a large piece of geometry like terrain or ocean is simply a case of setting the right mask on the root node of this large geometry to avoid or allow intersections? Or do you have set the mask on all the pieces of said large geometry? Tony V

Re: [osg-users] LineOfSight intersection returning geometry

2016-01-22 Thread Robert Osfield
Hi Tony, On 22 January 2016 at 02:31, Tony Vasile wrote: > By the way what are the following fields in > osgUtil::LineSegmentIntersector::Intersection : > > double ratio; > osg::NodePath nodePath; >

Re: [osg-users] LineOfSight intersection returning geometry

2016-01-21 Thread Robert Osfield
Hi Tony, The TraversalMask is part of the osg::NodeVisitor base class, so simply do: intersectionVisitor.setTraversalMask(0x01); Cheers, Robert. On 21 January 2016 at 07:57, Tony Vasile wrote: > Okay so I found this code: > > > Code: > > osg::ref_ptr intersectorGroup =

Re: [osg-users] LineOfSight intersection returning geometry

2016-01-21 Thread Tony Vasile
Thanks for that. I found my answer about an hour after posting this one. By the way what are the following fields in osgUtil::LineSegmentIntersector::Intersection : double ratio; osg::NodePath nodePath; osg::ref_ptr

Re: [osg-users] LineOfSight intersection returning geometry

2016-01-20 Thread Tony Vasile
Okay so I found this code: Code: osg::ref_ptr intersectorGroup = new osgUtil::IntersectorGroup(); for(unsigned int r=0; r

[osg-users] LineOfSight intersection returning geometry

2016-01-20 Thread Tony Vasile
Looking at the osgintersection.cpp example I notice that it uses osgSim::LineOfSight to set up a series of lines to intersect the model that is loaded. The intersections that are returned retrieves a series of intersection points. I was wondering if it is possible to get the geometry that the