Hi folks, I guess this question is applicable for an LOD database as well. Here is the background of my question, and please forgive me if this has already been asked and answered.
I have a terrain database for which I load buildings and lights separately. I clamp the buildings and lights to the database to keep things looking nice, but can't do it all the time, so when an LOD changes, the models may be buried or floating. Is there a way to create a callback mechanism for my models so that they get notified whenever a terrain LOD changes? In this callback I will clamp the models that are over this LOD. I guess it could work the other way as well, where I "attach" the models to a given LOD and then the callback is on the LOD and it clamps the "attached" models. So, looking at it that way, is it as simple as traversing the entire dbase on startup, looking for all of the LODs, attaching pertinent models to each, and then providing an update callback that clamps them? The callback will only be called when the LOD is being rendered, and I could make sure it happens only once. I would like to use existing mechanisms. My database is an osgdem PagedLOD, so is it possible to traverse the entire thing, even though the it may not be paged in? Could it be that the LOD structure available when the database is first "loaded"? This post is more of a stream of questions, I apologize. Thank you. -B --- Brad Colbert Renaissance Sciences Corporation _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org