Hi Robert (and all) --
Robert, back when we met face-to-face some 5 years back, I recall a brief
discussion about possibly enhancing OSG so that Drawables did not need to be
attached only to the Geode container node, but instead could be attached to any
Group or Group-derived node.
I'm currently working out an improved occlusion query system that could benefit
from such a feature. During cull, a cull callback attached to a Group executes
as follows:
if we think we should do a query:
add a Drawable that performs a query on its geometry
return without traversing the Group's children
else
traverse the Group's children
When the Group cull callback adds the Drawable (to do the query), it does so
just as if the CullVisitor had encountered the Drawable attached to a Geode (by
calling addDrawableAndDepth). This seems to work fine, and in essence, my code
is supporting Drawables attached to a Group (via a Group cull callback).
If you have a few minutes, I'd love to get your input on this. I wondered what
your current thoughts were with regards to such functionality, why it was never
pursued, what was the thinking behind the original Geode concept (restricting
Drawables to leaf nodes), any other thoughts you might have on this topic,
warnings, etc.
Thanks for any info,
--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org