How to load 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
Guest

How to load a x. file?

Post by Guest »

How can I load a x. file and animate it?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Just have a look at tutorial 1 and change the filenames...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Sol
Posts: 8
Joined: Wed Apr 13, 2005 1:13 am
Location: Louisiana, USA
Contact:

Post by Sol »

That hasn't seemed to work for me (different poster than 1st guy :D )
I get a parse error before the last } in main(), or was it that other error. :roll:
ijo coim
Posts: 57
Joined: Fri Mar 25, 2005 1:29 pm
Location: indonesia, jogja-jogja

i'd try

Post by ijo coim »

i'd try this. i use turtorial 4. just change the model, change the code like this:

Code: Select all

scene::IAnimatedMeshSceneNode* anms = smgr->addAnimatedMeshSceneNode(
		smgr->getMesh("[b]earth.x[/b]"));
don't change anything. off course you must have file earth.x, and put it in the right directory.

hope this help.

regards,

ijo coim
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

And remember, that Irrlicht doesn't support all DX formats !!!
AFAIK there are two DX verions: binary and text
Irrlicht uses the text format...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Sol
Posts: 8
Joined: Wed Apr 13, 2005 1:13 am
Location: Louisiana, USA
Contact:

Post by Sol »

In that case, CONVERSION TIME!!1!
Post Reply