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
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:
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
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
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;
>
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 =
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
Okay so I found this code:
Code:
osg::ref_ptr intersectorGroup = new
osgUtil::IntersectorGroup();
for(unsigned int r=0; r
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
9 matches
Mail list logo