They are more than long enough, perhaps what may be too long, -9999 to 9999.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Wednesday, July 12, 2006 4:27 PM To: osg users Subject: Re: [osg-users] Node Visitors and Repeated Tests Are you line segments long enough to intersect the terrain? On 7/12/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote: > Hi Robert (and all), > > I am constructing the intersectvisitor on the stack each time I call > my function which tests terrain height. Each time something moves, I > test the terrain height this way and place it on top of the terrain. I > am getting a whole lot of empty hitlists when it doesn't make much sense. > Is this because I am asking for the hitlist too soon? Could it be that > the operation is non-blocking since it is a nodevisitor? The strange > thing is that it looks ok, so for the majority of frames it works > properly. > > Thanks in advance, > John > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Robert > Osfield > Sent: Sunday, July 02, 2006 4:40 PM > To: osg users > Subject: Re: [osg-users] Node Visitors and Repeated Tests > > Hi John, > > I typically contruct the IntersectVisitor on the stack when I need it, > rather than reusing the same one over and over again. > > Robert. > > On 6/30/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote: > > > > > > > > In our project, every entity is placed on a terrain. This updating > > is performed by using an intersectvisitor. I have a few questions > > about the most optimal way to perform the elevation tests etc. > > Should I create a new intersect visitor each and every time I test > > the > elevation of the terrain? > > If I am not mistaken, I have to add a new line segment to the > > intersect visitor at every place I am interested in finding the > elevation and normal. > > Can I then remove these line segments? The problem that I am having > > with the current way it is implemented is that sometimes, the > > hitlist is coming back as empty. > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://openscenegraph.net/mailman/listinfo/osg-users > > http://www.openscenegraph.org/ > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
