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?
[Solved] Exporting a .obj from an IMesh?
[Solved] Exporting a .obj from an IMesh?
Last edited by Piter on Mon Dec 23, 2013 2:36 pm, edited 1 time in total.
Re: Exporting a .obj from an IMesh?
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
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
Re: Exporting a .obj from an IMesh?
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?
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?
That's great Thank you!