Export mesh as .obj

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
kiel814
Posts: 37
Joined: Mon May 23, 2011 4:30 pm

Export mesh as .obj

Post by kiel814 »

I used the CustomSceneNode example to create a... well... a custom scene node.
My question is:
Is it possible to export a such a scene node to a file like .obj or similar format, so that I can open it with 3DStudio/Blender or some other 3D editing software?

At least for now, I'm not interested in exporting materials/colors/anything/lighting or anything other than the mesh itself.
Also, not interested in importing files. Just exporting.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Export mesh as .obj

Post by CuteAlien »

If you use a mesh in your scenenode you can export that. I have even some example: https://code.google.com/p/irr-playgroun ... dwrite.cpp
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
kiel814
Posts: 37
Joined: Mon May 23, 2011 4:30 pm

Re: Export mesh as .obj

Post by kiel814 »

Awesome!
Added a GetMesh() method to my scene node that creates the mesh on the fly.

Thanks a lot!
Post Reply