How to use an animation of a .X file

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
majc
Posts: 6
Joined: Wed Sep 14, 2005 7:04 pm

How to use an animation of a .X file

Post by majc »

I need to know how i put a .X animated file working in Irrlicht.
Thanks in advance.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

smgr->addAnimatedMeshSceneNode(smgr->getMesh(filename))

simple as that i think, where filename is the name of the .x file.
Image Image Image
dhenton9000
Posts: 395
Joined: Fri Apr 08, 2005 8:46 pm

Post by dhenton9000 »

demo at

http://www.sendmefile.com/00083803

Includes a really spiffy .X file, too!!
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

Post 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
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Post Reply