Title: Node Visitors and Repeated Tests

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/

Reply via email to