Hi Sherman,

I've just reviewed the CullVisitor::apply(Billboard&) code and it
doesn't check for a drawable cull callback like the equivalent
apply(Geode&) does, so I guess its not surprising that your cull
callbacks aren't getting called..

So... we could add a check for the cull callback into the Billboard
code path, this would be quite east to do - just a copy and paste,
but...  the calling code will need to do the local billboard transform
before it does its cull test otherwise it could cull for an object
that is actually moved elsewhere for rendering.

Right now my inclination is that the check for the cull callback
should be in there, and end users will just need to be mindful about
that fact that Billboard geometry is a bit different.  Using cull
callbacks is an advanced user issue so perhaps this so bad.

Robert.

On 6/28/07, sherman wilcox <[EMAIL PROTECTED]> wrote:
Question: do drawables that belong to billboards support cullcallbacks?

I can build a simple piece of geometry and the cullcallback works
fine. I can use an AutoTransform and attach a cullcallback to the
drawable within the geode, that works. However, if I attach a
cullcallback to a drawable that belonds to a Billboard, the
cullcallback is never called. I can attach a node callback to the
billboard itself. That gets called. But I need to know when a given
drawable is not culled within a Billboard object. I was hoping to use
osg::Drawable::CullCallback.

What am I missing here?
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to