Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
|
Class for converting Assimp scenes to OpenSceneGraph nodes. More...
#include <osgAssimpSceneReader.h>
Public Member Functions | |
osgAssimpSceneReader () | |
Constructor. Not needed since the only public function is static. | |
virtual | ~osgAssimpSceneReader () |
Virtual destructor. | |
Static Public Member Functions | |
static osg::Node * | traverseAIScene (const struct aiScene *aiScene, const struct aiNode *aiNode) |
Traverse the aiScene object and convert aiScene nodes to osg::Nodes and add then to a main osg::MatrixTransform that contains all the nodes. | |
Static Protected Member Functions | |
static void | createMaterialData (osg::StateSet *ss, const aiMaterial *aiMtl) |
Extract material data from aiMaterial and add it to the osg::StateSet. |
Class for converting Assimp scenes to OpenSceneGraph nodes.
void osgAssimpSceneReader::createMaterialData | ( | osg::StateSet * | ss, |
const aiMaterial * | aiMtl | ||
) | [static, protected] |
Extract material data from aiMaterial and add it to the osg::StateSet.
ss | osg::StateSet pointer to add material data to |
aiMtl | Assimp Material to get material data from |
osg::Node * osgAssimpSceneReader::traverseAIScene | ( | const struct aiScene * | aiScene, |
const struct aiNode * | aiNode | ||
) | [static] |
Traverse the aiScene object and convert aiScene nodes to osg::Nodes and add then to a main osg::MatrixTransform that contains all the nodes.
aiScene | Assimp scene to get material data from |
aiNode | Assimp node to traverse and get Node info from |