[osg-users] osganimationhardware example
Giuseppe Donvito
giuseppe.donvito at gmail.com
Thu Oct 25 00:39:22 PDT 2018
Uhmm, actually it seems not enough.
As you can see in this screenshot the nathans are still in T-pose while playing...
Thanks
Giuseppe
mp3butcher wrote:
> 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
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75123#75123
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snip_20181025093116.png
Type: image/png
Size: 101485 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20181025/35770779/attachment-0001.png>
More information about the osg-users
mailing list