uncomment normalization in rigtransformxxx
This commit is contained in:
parent
0ebf540d65
commit
985d766f05
@ -37,14 +37,9 @@ namespace osgAnimation
|
|||||||
|
|
||||||
META_Object(osgAnimation,MorphTransformHardware);
|
META_Object(osgAnimation,MorphTransformHardware);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
virtual void operator()(MorphGeometry&);
|
virtual void operator()(MorphGeometry&);
|
||||||
void setShader(osg::Shader*);
|
void setShader(osg::Shader*);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
bool init(MorphGeometry&);
|
bool init(MorphGeometry&);
|
||||||
|
@ -77,7 +77,7 @@ void RigTransformSoftware::buildMinimumUpdateSet(const BoneMap&boneMap,const Rig
|
|||||||
|
|
||||||
// normalize _vertex2Bones weight per vertex
|
// normalize _vertex2Bones weight per vertex
|
||||||
unsigned vertexID=0;
|
unsigned vertexID=0;
|
||||||
/*for (std::vector<BonePtrWeightList>::iterator it = _vertex2Bones.begin(); it != _vertex2Bones.end(); ++it, ++vertexID)
|
for (std::vector<BonePtrWeightList>::iterator it = _vertex2Bones.begin(); it != _vertex2Bones.end(); ++it, ++vertexID)
|
||||||
{
|
{
|
||||||
BonePtrWeightList& bones = *it;
|
BonePtrWeightList& bones = *it;
|
||||||
float sum = 0;
|
float sum = 0;
|
||||||
@ -93,7 +93,7 @@ void RigTransformSoftware::buildMinimumUpdateSet(const BoneMap&boneMap,const Rig
|
|||||||
for(BonePtrWeightList::iterator bwit=bones.begin();bwit!=bones.end();++bwit)
|
for(BonePtrWeightList::iterator bwit=bones.begin();bwit!=bones.end();++bwit)
|
||||||
bwit->setWeight(bwit->getWeight() * mult);
|
bwit->setWeight(bwit->getWeight() * mult);
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
///2 Create inverse mapping Vec<BoneWeight>2Vec<Index> from previous built Index2Vec<BoneWeight>
|
///2 Create inverse mapping Vec<BoneWeight>2Vec<Index> from previous built Index2Vec<BoneWeight>
|
||||||
///in order to minimize weighted matrices computation on update
|
///in order to minimize weighted matrices computation on update
|
||||||
|
Loading…
Reference in New Issue
Block a user