[osg-users] osganimationhardware example

Giuseppe Donvito giuseppe.donvito at gmail.com
Fri Oct 26 00:45:30 PDT 2018


I confirm, it was the shaders. if you use openscenegraph-data repo you have to modify the example adding the proper shader path.
Moreover in the pre-osganimation refactoring version, the example worked well without shaders too, falling back to "software" implementation.

Anyway you can post the fix for osganimationhardware that actually solves the issue.

Thanks!

Cheers,
 Giuseppe


mp3butcher wrote:
> Hi
> In fact the mapvisitor was not involves, I react to soon to a maybe-bug.
> i closed the pr...
> The answer to your problem is my first post
> ...or that you forgot the shader file in launch directory...
> 
> Cheers
> 
> mp3butcher wrote:
> > I have checked and it seems to work.
> > you also must launch the example from a directory containing skinning.vert
> > Did you do that?
> > check error outputs
> > ...
> > 
> > 
> > donvito wrote:
> > > sure I made both changes of course.
> > > Please run the example by yourself and you will see the same issue.
> > >  G
> > > 
> > > 
> > > 
> > > mp3butcher wrote:
> > > > Mmmh I compiled 3.6 only to pr and checked the results...
> > > > Are you sure you've applied the hack to avoid ss sharing?
> > > > You need both the source correction AND the example hack in order this to work
> > > > 
> > > > 
> > > > donvito wrote:
> > > > > Nope, the same result sorry.
> > > > > Do you have a chance to test the example on your side?
> > > > > Thanks
> > > > >  G
> > > > > 
> > > > > 
> > > > > mp3butcher wrote:
> > > > > > You'reright,
> > > > > > there is a diff between my git and the release 3.6
> > > > > > 
> > > > > > the problem seams to be in osgAnmiation/BoneMapVisitor
> > > > > > by removing apply(Node&) function make all work
> > > > > > If you can validate this change, i would make a pr to fix it
> > > > > > 
> > > > > > https://github.com/openscenegraph/OpenSceneGraph/pull/650
> > > > > > 
> > > > > > donvito wrote:
> > > > > > > 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=75139#75139







More information about the osg-users mailing list