Ok...so I upgraded to OSG 3.0.1 and tried this intersection limit test in my
app (setIntersectionLimit())
I first tried LIMIT_ONE. Performance did improve over the NO_LIMIT case but I
noticed that the number of intersections calculated were as high as 6 for some
of the line segments. I would
Hi Shayne,
On Thu, Sep 13, 2012 at 10:32 AM, Shayne Tueller shayne.tuel...@hill.af.mil
wrote:
I first tried LIMIT_ONE. Performance did improve over the NO_LIMIT case
but I noticed that the number of intersections calculated were as high as 6
for some of the line segments. I would have
Farshid,
I'm actually modifying the osgSim::LineOfSight class for my tests. I went into
LineOfSight.cpp and modified the computeIntersections() method to support
setIntersectionLimit() since there's currently no way to control this for the
Line of Sight stuff in OSG. I added the call
Hi Shayne,
Is each LineSegmentIntersector instance getting more than one intersection
result? Or is the total number of results among all intersectors more than
1? The limit is applied to each intersector instance, so the total number
of results should max out at the number of intersectors being
Farshid,
If I understand the code correctly, each intersector in the LOS code is
associated with a start end pair defining the line segment. In other words,
it's a 1 to 1 mapping. If I have 45 LOS queries, the code generates 45
LineSegmentIntersectors. Each intersector in turn is added to an
All,
I have a couple of questions regarding LineSegmentIntersector.
I noticed that for a given line segment, it currently computes and
returns ALL intersections with a given geometry in the scene.
My questions are:
1) Does it support a feature of detecting a hit and then
Hi Shayne,
The base osgUtil::Intersector class supports setting the limits on
intersection results, using the setIntersectionLimit() method. The current
options are NO_LIMIT, LIMIT_ONE_PER_DRAWABLE, LIMIT_ONE, LIMIT_NEAREST.
On Tue, Sep 11, 2012 at 9:47 AM, Tueller, Shayne R Civ USAF AFMC 519
...@lists.openscenegraph.org] On Behalf Of Farshid
Lashkari
Sent: Tuesday, September 11, 2012 11:08 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] LineSegmentIntersector question...
Hi Shayne,
The base osgUtil::Intersector class supports setting the limits on
intersection results, using
To: OpenSceneGraph Users
Subject: Re: [osg-users] LineSegmentIntersector question...
Farshid,
Thanks much for the input and addressing my questions. That is good news
that the support is there.
I'm assuming the default is NO_LIMIT. Is this true?
Thanks,
-Shayne
-Original Message-
From
Sent: Tuesday, September 11, 2012 11:13 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] LineSegmentIntersector question...
Farshid,
Thanks much for the input and addressing my questions. That is good news
that the support is there.
I'm assuming the default is NO_LIMIT. Is this true
...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of
Tueller,Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Sent: Tuesday, September 11, 2012 11:13 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] LineSegmentIntersector
11 matches
Mail list logo