Attaching bones to meshes in game
Attaching bones to meshes in game
I want to make a character customization system in one of my other projects, what I wanted to do is make it so that the player puts his or her character together from various modeled meshes then once done the bone would be added to the custom mesh in game. My question is is this possible and if so how would I go about doing it?
Last edited by Daystar on Mon Oct 27, 2008 10:06 pm, edited 1 time in total.
DayStar
Re: Attaching meshes to bones in game
Yes, you can call meshnode->getJointNode( "name" )->addChild( weaponmesh );Daystar wrote:I want to make a character customization system in one of my other projects, what I wanted to do is make it so that the player puts his or her character together from various modeled meshes then once done the bone would be added to the custom mesh in game. My question is is this possible and if so how would I go about doing it?
Also, you can take a look there -> http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=30682
Re: Attaching meshes to bones in game
he wants it the other way, create a mesh and attach bones to itLambda wrote:Yes, you can call meshnode->getJointNode( "name" )->addChild( weaponmesh );
Also, you can take a look there -> http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=30682
(so the subject is misleading, it should be "Attaching bones to meshes in game")...
and this is not possible with Irrlicht, I think...
also it must be possible in some way, because the mesh loaders also can do it,
or how do they create meshes with bones !?!?!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
so what ur saying is that I would have to figure out how to make bones in the format im using?JP wrote:i guess it's possible for irrlicht but not for irrlicht users, i.e. creating bones is private to irrlicht so not accessible to users of the library. If you want access you can always make it public by editing the irrlicht source, probably best to add some functions to smgr like create/addBone.
DayStar