Page 1 of 1

Exporting models from Blender to Ogre

Posted: Sat Oct 08, 2005 10:51 pm
by rafael.ayres
I´m using 3D models made in Blender and I want to export them to Ogre xml format. My model isn´t a solid object, but it has various sub-meshes that generate separate xml files when I try to export the model.

How can I export the model in a way that it can be imported as a single object in my game, preserving the material in each face of the model?

Posted: Sat Oct 08, 2005 11:16 pm
by discipline
Join them as one object, then export it.

Re: Exporting models from Blender to Ogre

Posted: Sun Oct 09, 2005 12:41 am
by xavier
rafael.ayres wrote: How can I export the model in a way that it can be imported as a single object in my game, preserving the material in each face of the model?
discipline wrote:Join them as one object, then export it.
I think this is the sticking point, correct? Every time a material changes for a mesh does that not require another submission to the rendering pipeline?

Posted: Sun Oct 09, 2005 12:45 am
by haffax
The exporter breaks the mesh up into submeshes on a per material base. It doesn't matter here whether the faces are neighboring or scattered over the whole mesh. So the result after a join is one mesh (in one mesh file) with one submesh per material used.