Page 1 of 1

How to use an animation of a .X file

Posted: Wed Sep 14, 2005 7:09 pm
by majc
I need to know how i put a .X animated file working in Irrlicht.
Thanks in advance.

Posted: Wed Sep 14, 2005 8:47 pm
by JP
smgr->addAnimatedMeshSceneNode(smgr->getMesh(filename))

simple as that i think, where filename is the name of the .x file.

Posted: Wed Sep 14, 2005 8:55 pm
by dhenton9000
demo at

http://www.sendmefile.com/00083803

Includes a really spiffy .X file, too!!

Posted: Thu Sep 15, 2005 11:42 am
by bearSoft
That demo was serious interesting! Thank you for the link and -big thanks- goes to 'AppWizard' for creating that!

btw-
It is easy to 'rewrite' to a DEV version
omit all
//#include "stdafx.h"
//#include <assert.h>
//#include <audiere.h>
//using namespace audiere;
//#pragma comment (lib, "audiere.lib")

and all references to : aDevice and stream
eg:
//AudioDevicePtr aDevice = NULL;
//aDevice = OpenDevice();
//OutputStreamPtr stream = NULL;

-of cause -if u have audiere installed then dont omit those :)

also line
//swprintf(tmpinfo, 1024, L"Anim # %d: frames %ld,%ld\n",currentAnimation,startAnimidx,stopAnimidx);
//frameText->setText(tmpinfo);

cast an conv error so omit that to