On 7/11/06, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Simon,
Is the scene empty when you get the errors?
Which version of the OSG are you using?
Robert.
On 7/7/06, Simon Leung <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am having a problem with the osgProducer::Viewer computeIntersections
> function.
>
> The code looks this:
>
> -----
> mViewerRP = new osgProducer::Viewer();
> ...
> mViewerRP->getEventHandlerList().push_front(mHitTestRP.get());
> (mHitTestRP is a subclass of osgGA::GUIEventHandler)
> -----
>
> Inside mHitTestRP's handle function:
>
> -----
> case(osgGA::GUIEventAdapter::FRAME):
> ...
> mViewerRP->computeIntersections(0.0f, 0.0f, lHitList);
> (mViewerRP is the same viewer as above, passed into mHitTestRP)
> -----
>
> When running the game, on the shell where the game is run, it outputs:
>
> "Warning:: Picked up error in TriangleIntersect
> (-0.57 13.61 30.12, 0.57 13.01 30.20, -0.57 13.01 30.20)
> (nan, nan, nan)" when the camera intersects with certain parts of a model
> and
>
> "Warning: invalid line segment passed to
> IntersectVisitor::addLineSegment(..)
> nan nan nan nan nan nan segment ignored.." when I press enter at the shell
> or switch from the game to another running process (which I think maximizes
> the CPU usage to 100% from running top).
>
> When both of these warnings occur, the screen blanks out causing flickers
> whenever this happens.
>
> I was wondering does anyone know how to stop this from happening, thank you
> for your time.
>
>
> Simon.
I have the same error with a non empty scene on OSG 1.0.
I will test it soon with the 1.1 RC. :)
--
Serge Lages
http://www.magrathea-engine.org
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/