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.
-
The internal Geometry used for rendering is double buffered, this allows updates to be done in a thread safe way while not compromising rendering performance. This is crucial when using osg's default threading model of DrawThreadPerContext.
SceneUtil::RigGeometry::RigGeometry |
( |
| ) |
|
SceneUtil::RigGeometry::RigGeometry |
( |
const RigGeometry & |
copy, |
|
|
const osg::CopyOp & |
copyop |
|
) |
| |
void SceneUtil::RigGeometry::accept |
( |
osg::NodeVisitor & |
nv | ) |
|
|
virtual |
void SceneUtil::RigGeometry::accept |
( |
osg::PrimitiveFunctor & |
func | ) |
const |
|
virtual |
void SceneUtil::RigGeometry::cull |
( |
osg::NodeVisitor * |
nv | ) |
|
|
private |
osg::Geometry * SceneUtil::RigGeometry::getGeometry |
( |
unsigned int |
frame | ) |
const |
|
private |
osg::ref_ptr< osg::Geometry > SceneUtil::RigGeometry::getSourceGeometry |
( |
| ) |
|
bool SceneUtil::RigGeometry::initFromParentSkeleton |
( |
osg::NodeVisitor * |
nv | ) |
|
|
private |
void SceneUtil::RigGeometry::setInfluenceMap |
( |
osg::ref_ptr< InfluenceMap > |
influenceMap | ) |
|
void SceneUtil::RigGeometry::setRigTransforms |
( |
osg::Matrixf & |
transform | ) |
|
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.
virtual bool SceneUtil::RigGeometry::supports |
( |
const osg::PrimitiveFunctor & |
| ) |
const |
|
inlinevirtual |
void SceneUtil::RigGeometry::updateBounds |
( |
osg::NodeVisitor * |
nv | ) |
|
|
private |
void SceneUtil::RigGeometry::updateGeomToSkelMatrix |
( |
const osg::NodePath & |
nodePath | ) |
|
|
private |
bool SceneUtil::RigGeometry::mBoundsFirstFrame |
|
private |
META_Object (SceneUtil, RigGeometry) virtual void compileGLObjects(osg osg::BoundingSpheref SceneUtil::RigGeometry::mBoundSphere |
osg::ref_ptr<osg::Geometry> SceneUtil::RigGeometry::mGeometry[2] |
|
private |
osg::ref_ptr<osg::RefMatrix> SceneUtil::RigGeometry::mGeomToSkelMatrix |
|
private |
osg::ref_ptr<InfluenceMap> SceneUtil::RigGeometry::mInfluenceMap |
|
private |
unsigned int SceneUtil::RigGeometry::mLastFrameNumber |
|
private |
osg::Matrixf SceneUtil::RigGeometry::mRigTransforms |
|
private |
Skeleton* SceneUtil::RigGeometry::mSkeleton |
|
private |
osg::ref_ptr<osg::Geometry> SceneUtil::RigGeometry::mSourceGeometry |
|
private |
osg::ref_ptr<const osg::Vec4Array> SceneUtil::RigGeometry::mSourceTangents |
|
private |
std::map<unsigned short, float> SceneUtil::RigGeometry::mWeights |
The documentation for this class was generated from the following files: