Quick question about how you typically handle non-model objects in the scene, eg grids, coordinate axis icons, north arrows, bounding cubes.
The problem with just attaching them to the nodes is that statesets, picking and save operation apply to them. So a pick might find the grid and changing points/mesh/surface or lighting also effects the grid. I have tried having a separate tree from the root so I can apply visitors to only the model branch but it would be nice to associate a grid or bounding cube with a particular node. Another alternative is to set a particular value for the name or user data field and modify all the visitor operations to skip this. Is there a common pattern for this? Cheers, Martin ps. To save re-inventing the wheel does anyone have any examples of a coordinate axis icon? Ideally one that can act like a billboard and stay in the same place on the screen as the camera/model is moved? ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12016#12016 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

