[osg-users] osganimationhardware example

Julien Valentin julienvalentin51 at gmail.com
Wed Oct 24 11:52:36 PDT 2018


Hi,
It comes from a know bug:
HardwareTransform doesn't support RigGeometry sharing StateSet.
One day, I may correct the exampple myHardwareTransform in order to use one overall bonemap common to multiple rigs...
You can make example work adding this line before copyFrom

Code:

      
        rig.getSourceGeometry()->setStateSet( (osg::StateSet*)  rig.getSourceGeometry()->getStateSet()->clone(osg::CopyOp::SHALLOW_COPY));
        // copy shallow from source geometry to rig
        rig.copyFrom(source);



Thank you!

Cheers,
Julien

------------------------
Twirling twirling twirling toward freedom

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







More information about the osg-users mailing list