Exporting models from Blender to Ogre

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
rafael.ayres
Gnoblar
Posts: 1
Joined: Sat Oct 08, 2005 10:25 pm

Exporting models from Blender to Ogre

Post 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?
User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

Join them as one object, then export it.
User avatar
xavier
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 9481
Joined: Fri Feb 18, 2005 2:03 am
Location: Dublin, CA, US
x 22

Re: Exporting models from Blender to Ogre

Post 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?
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8
Contact:

Post 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.
team-pantheon programmer
creators of Rastullahs Lockenpracht
Post Reply