MS3D Joint Nodes.
Posted: Mon Dec 11, 2006 5:55 am
I was trying to attach Child Scenenodes to Joint Nodes from MS3D models.
When I test this code the Node attaches it self as a Child but not in the right position.
So then I tried setting the position of the TestNode to the position of the models Joint Node Matrix. But Irrlicht can't load my model as an IAnimatedMeshMS3D and returns an error about converting from 'IAnimatedMesh' to 'IAnimatedMeshMS3D'. So could my model be incorrect?
Here's how my model looks.
When I test this code the Node attaches it self as a Child but not in the right position.
Code: Select all
ISceneNode* ShipLight =
PlayerNode->getMS3DJointNode( "Light1" );
ShipLight->addChild( Scene->addSphereSceneNode( 0.1, 8 ));
Here's how my model looks.