Mesh skinning implementation.
More...
#include <riggeometry.hpp>
Mesh skinning implementation.
- Note
- A RigGeometry may be attached directly to a Skeleton, or somewhere below a Skeleton. Note though that the RigGeometry ignores any transforms below the Skeleton, so the attachment point is not that important.
-
To avoid race conditions, the rig geometry needs to be double buffered. This can be done using a FrameSwitch node that has two RigGeometry children. In the future we may want to consider implementing the double buffering inside RigGeometry.
SceneUtil::RigGeometry::RigGeometry |
( |
| ) |
|
SceneUtil::RigGeometry::RigGeometry |
( |
const RigGeometry & |
copy, |
|
|
const osg::CopyOp & |
copyop |
|
) |
| |
osg::ref_ptr< osg::Geometry > SceneUtil::RigGeometry::getSourceGeometry |
( |
| ) |
|
bool SceneUtil::RigGeometry::initFromParentSkeleton |
( |
osg::NodeVisitor * |
nv | ) |
|
|
private |
SceneUtil::RigGeometry::META_Object |
( |
SceneUtil |
, |
|
|
RigGeometry |
|
|
) |
| |
|
inline |
void SceneUtil::RigGeometry::setInfluenceMap |
( |
osg::ref_ptr< InfluenceMap > |
influenceMap | ) |
|
void SceneUtil::RigGeometry::setSourceGeometry |
( |
osg::ref_ptr< osg::Geometry > |
sourceGeom | ) |
|
Initialize this geometry from the source geometry.
- Note
- The source geometry will not be modified.
void SceneUtil::RigGeometry::update |
( |
osg::NodeVisitor * |
nv | ) |
|
void SceneUtil::RigGeometry::updateBounds |
( |
osg::NodeVisitor * |
nv | ) |
|
void SceneUtil::RigGeometry::updateGeomToSkelMatrix |
( |
const osg::NodePath & |
nodePath | ) |
|
|
private |
bool SceneUtil::RigGeometry::mBoundsFirstFrame |
|
private |
osg::Matrixf SceneUtil::RigGeometry::mGeomToSkelMatrix |
|
private |
osg::ref_ptr<InfluenceMap> SceneUtil::RigGeometry::mInfluenceMap |
|
private |
unsigned int SceneUtil::RigGeometry::mLastFrameNumber |
|
private |
Skeleton* SceneUtil::RigGeometry::mSkeleton |
|
private |
osg::NodePath SceneUtil::RigGeometry::mSkelToGeomPath |
|
private |
osg::ref_ptr<osg::Geometry> SceneUtil::RigGeometry::mSourceGeometry |
|
private |
osg::ref_ptr<osg::Vec4Array> SceneUtil::RigGeometry::mSourceTangents |
|
private |
The documentation for this class was generated from the following files: