Page 1 of 1

CAnimatedMeshB3d.cpp: could you let me know how to use .b3d

Posted: Sun Oct 15, 2006 11:34 am
by godmode2k
CAnimatedMeshB3d.cpp: could you let me know how to use .b3d file ?

I can handle .md2 (Quake2 model).
But, B3d much better than md2.

so, could you let me know some example like below article ?
http://irrlicht.sourceforge.net/phpBB2/ ... 3d&start=0

afecelis, i couldn't download below download url.
http://afecelis.gdlib.net/Irrlicht/b3dtest.zip

regards,
godmode2k

Posted: Sun Oct 15, 2006 12:25 pm
by Luke
B3d is pretty easy to use, you load the mesh the same as md2 or x and they animate the same as x meshes (except the frames are spread out by 100 for smoother animation)

One of the Irrlicht examples shows you how to load and animate x meshes, is the same for b3d meshes, just change the file its using to a b3d mesh.

If you want to play around with it you can get some nice b3d characters here:
http://www.psionic3d.co.uk/cgi-bin/imag ... D%20Models

Posted: Sun Oct 15, 2006 3:29 pm
by godmode2k
thanks Luke,

b3d shows on screen pretty good.
but, how to handle animation ?

...->setMD2Animation( EMAT_STAND ); in .md2

My .b3d file is converted Half-Life model .mdl to .ms3d to .b3d through MilkShape 3D.
Of course with Animate .SMD file (forward, back, run, walk, ...).

like below.
( import main .smd -> import animate files -> save .ms3d -> open .ms3d -> export .b3d ; that's it. )

Q: how to handle each animate ? if using ...->setFrameLoop(, ); then converted model file above, how can i know each frame number ?
I've tried frame number which MilkShape 3D shows frame number.
But i couldn't see animation.

regards,
godmode2k

Posted: Mon Oct 16, 2006 11:59 am
by Luke
godmode2k:


Like I said, the frames are spread out by 100, so you will have to do something like this:


node->setFrameLoop(startframe*100, endframe*100);

node->setAnimationSpeed (FramesPerSec * 100);

Posted: Tue Oct 17, 2006 4:55 am
by godmode2k
hi Luke,

I'm sorry for my question.
I've solved already.

I had found your old article here.
http://irrlicht.sourceforge.net/phpBB2/ ... &start=129

Thanks again.

Regards,
godmode2k