How to load static mesh .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
devil20
Posts: 14
Joined: Wed Jan 19, 2005 2:28 pm
Location: UK

How to load static mesh .x file ??

Post by devil20 »

Hi
I am beginner for Irrlicht engine . engine can load .x file but it is animated.
How can i load static mesh file in directx .x file ? anyone tell me ?
I find hard but found nothing loat static mesh .


thanx
devil20
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

IMesh* mesh=smgr->getMesh("whatever.x")->getMesh(0);

Unless i misunderstand what you want, that should work. It will give you an IMesh that you can use to create a MeshSceneNode
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
devil20
Posts: 14
Joined: Wed Jan 19, 2005 2:28 pm
Location: UK

Post by devil20 »

Thanx Electron
I'll try to do that :)
Post Reply