B3D smooth faces

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
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

B3D smooth faces

Post by Auradrummer »

Hello guys,
Does B3D format supports smoothing faces? My mesh is always flat.
Professional Software Developer and Amateur Game Designer ;-)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: B3D smooth faces

Post by CuteAlien »

B3D should have vertex normals. So you can smooth those before export.
In theory you can also call recalculateNormals from the MeshManipulator, but it's less control that way (as it run then on all faces).
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
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Re: B3D smooth faces

Post by Auradrummer »

Thanks Master,
I'll try to discover why it not worked. By the way, what is the best way to export an skeletal animated mesh from Blender to Irrlicht?
There is another software or technique people are using nowadays?
Professional Software Developer and Amateur Game Designer ;-)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: B3D smooth faces

Post by CuteAlien »

Sorry, I don't know. My guess is there might not be an easy solution right now. Sadly it's been over a decade since I last tried exporting an animation from Blender. Back then b3d still worked. Maybe .X still works? If Blender still has exporter for that. My own projects over the last years were all with static objects, so this is something where I depend on other people improving the engine if there are problems.

edit: Using assimp library might work. Forum has some info about it somewhere.
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
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Re: B3D smooth faces

Post by Auradrummer »

I never heard about Assimp, but looks promising! Thanks for the tip!
Professional Software Developer and Amateur Game Designer ;-)
Post Reply