Am 24.08.2012 11:42, schrieb Alexej Fink:
Hello Sebastian.


Sebastian Messerschmidt wrote:
For this i used the setComputeBoundingBoxCallback on the geometry in
question to set it to the correct bounding box.
Maybe you could use this on your first-class Node?


Hm, maybe.
Unfortunately the "documentation" to 
Drawable::setComputeBoundingBoxCallback(..) does not say anything about how often this 
callback is called and what is the tirgger (if called on demand).
I thought this callback is desired for dynamic geometry, which can change 
(nearly) per frame.
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


I still think the idea of one or more independent cull-camera(s) and separate 
draw-camera is not that bad.
Does anyone know: Is possible to realize that using build in OSG tools?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49490#49490





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to