Page 1 of 1
[Solved] Exporting a .obj from an IMesh?
Posted: Fri Dec 20, 2013 11:05 pm
by Piter
Hi,
I would like to know whether it is possible to export in Irrlicht a .obj from an IMesh or not. And if it can't be done in Irrlicht, do you know any way to do it?
Re: Exporting a .obj from an IMesh?
Posted: Sat Dec 21, 2013 7:45 pm
by CuteAlien
Yes, check ISceneManager::createMeshWriter. The parameter for an obj meshwriter is EMWT_OBJ. Then you can write the mesh:
http://irrlicht.sourceforge.net/docu/cl ... riter.html
Re: Exporting a .obj from an IMesh?
Posted: Mon Dec 23, 2013 4:41 am
by Piter
Perfect, many thanks. That makes me wonder if it is also possible to write an SMaterial or an ITexture. I've checked the documentation and I haven't found anything about it, so I suppose it's not possible... Anyway, thanks again.
Re: Exporting a .obj from an IMesh?
Posted: Mon Dec 23, 2013 10:11 am
by hendu
The textures used by the mesh will be written to the corresponding .mtl file, when exporting to .obj.
Re: Exporting a .obj from an IMesh?
Posted: Mon Dec 23, 2013 2:35 pm
by Piter
That's great

Thank you!