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
3d Studio Max -> irrlicht
Have you tried this ? :
Code: Select all
node->setMaterialTexture( 0, driver->getTexture("filename.jpg") );
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm