On Fri, Aug 24, 2012 at 6:09 AM, Alexej Fink <[email protected]> wrote: > > Sebastian Messerschmidt wrote: > > The callback will be called if the bounds are marked as dirty. (i.e. if > > a new PrimitiveSet is added). > > In my use case I simple set the callback, called getBounds once on the > > parent and then removed the callback after loading and before attaching > > the node to the scenegraph. I can do this safely as I know that the > > instanced geometry set is not changed in any way. > > > > cheers > > Sebastian > > > > > Thanks, this sounds reasonable. > > One more point. I really don't care about culling on the > Drawable-instances level. > Can I setup the bboxes just for the parent grouping nodes and have nothing > at the drawable level, is it possible?
No, you need to apply it on the drawables, otherwise they will still get culled. I created some utilities to support DrawInstanced usage in osgEarth, including a visitor that will apply the static bounding box to drawables. Perhaps it would be useful to you: http://github.com/gwaldron/osgearth/blob/master/src/osgEarth/DrawInstanced<https://github.com/gwaldron/osgearth/blob/master/src/osgEarth/DrawInstanced.cpp> http://github.com/gwaldron/osgearth/blob/master/src/osgEarth/DrawInstanced.cpp<https://github.com/gwaldron/osgearth/blob/master/src/osgEarth/DrawInstanced.cpp> Glenn Waldron / Pelican Mapping / @glennwaldron
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

