PDA

View Full Version : How to combine 2 different 3d mesh to make a animated sprite in



feelthat
02-10-2013, 08:57 PM
First, search the example code

I can use .B3D or .X file fromat to build a 3d animated NinJa Sprite.

I want to use the object concept.


Could I create an animated NinJa Sprite mesh A1

combine with weapon B1 mesh or change to weapon B2 mesh ?

Then I do not need to create 2 different .B3D or .X files.


Its mean A1 mesh is a file, B1 mesh is file, and B2 is a file

combine A1+B1 or A1+B2 to make a animated NinJa Sprite.

How to do that?

feelthat
02-11-2013, 01:00 PM
can do this way?

IAnimatedMesh* mesh = smgr->getMesh("../../media/Charactor.b3d");
IAnimatedMesh* weapon = smgr->getMesh("../../media/Sword.3ds");


IAnimatedMeshSceneNode* nodeChara = smgr->addAnimatedMeshSceneNode( mesh );
IAnimatedMeshSceneNode* nodeWeapon = smgr->addAnimatedMeshSceneNode(weapon);

ISceneNode* nodeJoint = nodeChara ->getJointNode("Bip01 R Hand");

nodeJoint->addChild(nodeWeapon);
nodeWeapon ->updateAbsolutePosition();




First, search the example code

I can use .B3D or .X file fromat to build a 3d animated NinJa Sprite.

I want to use the object concept.


Could I create an animated NinJa Sprite mesh A1

combine with weapon B1 mesh or change to weapon B2 mesh ?

Then I do not need to create 2 different .B3D or .X files.


Its mean A1 mesh is a file, B1 mesh is file, and B2 is a file

combine A1+B1 or A1+B2 to make a animated NinJa Sprite.

How to do that?