Hi,

Jean-Sébastien Guay wrote:
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,

A colleague of mine encountered something similar, it was caused in an intersector by converting small doubles to floats which then became 0's.

I've asked him for the details and will post asap.

jp



--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to