replace VertexInfluence to BoneInfluenceList
and VertexIndexWeight to IndexWeight fix in example
This commit is contained in:
@@ -145,7 +145,7 @@ struct SetupRigGeometry : public osg::NodeVisitor
|
||||
if (_hardware) {
|
||||
osgAnimation::RigGeometry* rig = dynamic_cast<osgAnimation::RigGeometry*>(&geom);
|
||||
if (rig)
|
||||
rig->setRigTransformImplementation(new MyRigTransformHardware);
|
||||
rig->setRigTransformImplementation(new osgAnimation::RigTransformHardware);
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
@@ -146,11 +146,11 @@ void initVertexMap(osgAnimation::Bone* b0,
|
||||
float val = (*array)[i][0];
|
||||
std::cout << val << std::endl;
|
||||
if (val >= -1.0f && val <= 0.0f)
|
||||
(*vim)[b0->getName()].push_back(osgAnimation::VertexIndexWeight(i,1.0f));
|
||||
(*vim)[b0->getName()].push_back(osgAnimation::IndexWeight(i,1.0f));
|
||||
else if ( val > 0.0f && val <= 1.0f)
|
||||
(*vim)[b1->getName()].push_back(osgAnimation::VertexIndexWeight(i,1.0f));
|
||||
(*vim)[b1->getName()].push_back(osgAnimation::IndexWeight(i,1.0f));
|
||||
else if ( val > 1.0f)
|
||||
(*vim)[b2->getName()].push_back(osgAnimation::VertexIndexWeight(i,1.0f));
|
||||
(*vim)[b2->getName()].push_back(osgAnimation::IndexWeight(i,1.0f));
|
||||
}
|
||||
|
||||
geom->setInfluenceMap(vim);
|
||||
|
||||
Reference in New Issue
Block a user