3d Studio Max -> irrlicht

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
chalkos
Posts: 4
Joined: Sat Oct 10, 2009 5:17 pm

3d Studio Max -> irrlicht

Post by chalkos »

Hi,

I'm trying to develop a game and I would like to use 3d Studio Max to create characters, a level, guns, lights, etc (it's a first person shooter). But I can't figure out how am I supposed to import things correctly to irrlicht.

I know irrlicht supports .x format and other meshes (it also supports 3ds meshes which is great) but I have no idea on how to apply textures. So I tried to do things like this:

3d studio max -> Quake 3 map editor -> bsp file -> irrlicht.
but I just can't do anything with editors like gtkradiant or quark (some basic things are not accessible and advanced things are right in front of your eyes and I ... bah. no way i'm successfully)

So i thought of doing it like this:
3DS meshes -> irrlicht -> apply textures -> done the visual part.
I know how to create static and animated meshes in 3d studio max and import them in irrlicht. the thing I dont know is how I apply textures to my meshes (both static and animated).

I've been looking for an answer for about one week and I got nothing.
Thanks
Psan
Posts: 16
Joined: Sun Oct 04, 2009 7:07 pm

Post by Psan »

Have you tried this ? :

Code: Select all


node->setMaterialTexture( 0, driver->getTexture("filename.jpg") );

chalkos
Posts: 4
Joined: Sat Oct 10, 2009 5:17 pm

Post by chalkos »

does that solve the problem on animated meshes too?
CuteAlien
Admin
Posts: 9720
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

The .x format does contain the texture information. As long as the textures are in the same path as the .x Irrlicht should load them automatically for you.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply