Hi Ulrich,
Warning:: Picked up error in TriangleIntersect
(-1.81147 0.476811 -0.118829, -1.78078 0.471588 -0.0661082, -1.79068
0.886959 -0.0813922)
(1.#QNAN, 1.#QNAN, 1.#QNAN)
Warning:: Picked up error in TriangleIntersect
(-1.79068 0.886959 -0.0813922, -1.78078 0.471588 -0.0661082, -1.78498
This won't help you directly, but as a first step in identifying the
source of the problem, the one time I've seen this error is when some
objects were moved too far from the origin (to DBL_MAX in this case...).
The LineSegmentIntersector at that time used floats, so when DBL_MAX was
truncated to a float, it gave QNAN as above, and I got similar messages.
And, as you describe, the messages would be printed so often that the
application slowed to a crawl.
You could scrutinize the placement of objects which you're picking. If
there are any objects which might move very far away, or any object you
don't want to pick against actually, use nodemasks to prevent the
IntersectionVisitor from visiting them.
Then again, your problem might be caused by something completely
different. It's pretty much a shot in the dark... If you have access to
the OSG sources and a debug OSG binary, place a breakpoint where the
error message is printed, then run the simulation and try to reproduce
the problem. When it breaks, it might at least tell you which node was
being tested for intersection, and in which circumstances.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org