Hi,

I'm not sure if I'm doing something wrong or not, but when I set the
update callback on the group node, some how, it caused the children
(osgText) underneath to disappear.. i.e. not rendered.  

My app integrates w/ osg in a weird way so I don't have a buildable
sample but here's the snippit:

class callback : public osg::NodeCallback
{
public:
        callback( internal* p ) 
                : parent( p )
        {}

        virtual void operator()( osg::Node* n, osg::NodeVisitor* nv )
        {
                parent->update( nv, n );
        }
        internal* parent;
};

internal::init()
{
...
    root = new osg::Group;

        transpStateSet = new osg::StateSet;
      // set some state set stuff..

        root->setStateSet( transpStateSet.get() );
        root->setUpdateCallback( new callback( this ) );
...
}

later, i do the equivalent of:

root->addChild( osg_text_node );

and when i draw... nothing.  when I remove the setUpdateCallback() call,
it shows up.  any ideas?

My current workaround is to create another group node under the root..
And set the update callback to that.  And everything renders okay this
way.

Any help would be appreciated,
Kenny
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to