Hi,
I am creating a generic COLLADA effect node based on the osgFX node. I have integrated this generic COLLADA effect node into Heinrich Fink's COLLADA DAE loader and with a bunch of other changes have the system working pretty well. The loader displays COLLADA GLSL profile effects. The modifications to the derived osgFX class are small. Basically, the techniques and StateSets are created externally from the osgFX node and added to an internal cache in the effect when the COLLADA data is parsed. When define_techniques() is finally called the techniques in the cache are added using addTechnique(). When define_passes is called the StateSets in the cache are added using addPass(). The approach is simple and works fine and I getting some great looking output. Now for the problem - I notice in osgFXBrowser that the osgFX nodes receive both CullVisitors and NodeVisitors. In my application the osgFX node never gets an UpdateVisitor, it only gets CullVisitors. I need to get the UpdateVisitor working so that I can update the current uniform values and set data for complex multi-pass effects like fur etc. I am stumped and wonder if you have any advice on how to enable the UpdateVisitor traversal? My node tree looks like this: Group->Effect->Group->Geode->Geometry I would rate my OpenSceneGraph knowledge as beginner. Thanks Gordon
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
