1 #ifndef OPENMW_COMPONENTS_NIFOSG_RIGGEOMETRY_H
2 #define OPENMW_COMPONENTS_NIFOSG_RIGGEOMETRY_H
4 #include <osg/Geometry>
29 osg::Matrixf mInvBindMatrix;
30 osg::BoundingSpheref mBoundSphere;
32 std::map<unsigned short, float> mWeights;
37 std::map<std::string, BoneInfluence>
mMap;
49 void update(osg::NodeVisitor* nv);
osg::ref_ptr< osg::Geometry > mSourceGeometry
Definition: riggeometry.hpp:55
Handles the bone matrices for any number of child RigGeometries.
Definition: skeleton.hpp:36
std::map< std::string, BoneInfluence > mMap
Definition: riggeometry.hpp:37
bool mBoundsFirstFrame
Definition: riggeometry.hpp:79
void updateGeomToSkelMatrix(const osg::NodePath &nodePath)
Definition: riggeometry.cpp:333
osg::ref_ptr< osg::Geometry > getSourceGeometry()
Definition: riggeometry.cpp:145
osg::ref_ptr< osg::Vec4Array > mSourceTangents
Definition: riggeometry.hpp:56
META_Object(SceneUtil, RigGeometry) struct BoneInfluence
Definition: riggeometry.hpp:25
Mesh skinning implementation.
Definition: riggeometry.hpp:19
Bone2VertexMap mBone2VertexMap
Definition: riggeometry.hpp:72
std::pair< BoneBindMatrixPair, float > BoneWeight
Definition: riggeometry.hpp:66
void setSourceGeometry(osg::ref_ptr< osg::Geometry > sourceGeom)
Definition: riggeometry.cpp:88
BoneSphereMap mBoneSphereMap
Definition: riggeometry.hpp:76
void updateBounds(osg::NodeVisitor *nv)
Definition: riggeometry.cpp:298
std::map< std::vector< BoneWeight >, VertexList > Bone2VertexMap
Definition: riggeometry.hpp:70
osg::ref_ptr< InfluenceMap > mInfluenceMap
Definition: riggeometry.hpp:62
bool initFromParentSkeleton(osg::NodeVisitor *nv)
Definition: riggeometry.cpp:150
std::vector< unsigned short > VertexList
Definition: riggeometry.hpp:68
std::map< Bone *, osg::BoundingSpheref > BoneSphereMap
Definition: riggeometry.hpp:74
unsigned int mLastFrameNumber
Definition: riggeometry.hpp:78
std::pair< Bone *, osg::Matrixf > BoneBindMatrixPair
Definition: riggeometry.hpp:64
void setInfluenceMap(osg::ref_ptr< InfluenceMap > influenceMap)
Definition: riggeometry.cpp:350
osg::NodePath mSkelToGeomPath
Definition: riggeometry.hpp:59
Skeleton * mSkeleton
Definition: riggeometry.hpp:57
RigGeometry()
Definition: riggeometry.cpp:66
osg::Matrixf mGeomToSkelMatrix
Definition: riggeometry.hpp:60
void update(osg::NodeVisitor *nv)
Definition: riggeometry.cpp:231
Definition: riggeometry.hpp:35