Page 1 of 1

3d Studio Max -> irrlicht

Posted: Fri Oct 16, 2009 6:20 pm
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

Posted: Sat Oct 17, 2009 5:44 pm
by Psan
Have you tried this ? :

Code: Select all


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


Posted: Sat Oct 17, 2009 9:00 pm
by chalkos
does that solve the problem on animated meshes too?

Posted: Sun Oct 18, 2009 5:45 pm
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.