1
\$\begingroup\$

i am exporting a model from BLENDER to OGRE3D using the blender2ogre script. the desigre output is a single .mesh file but i know there should be also materials scripts that i should copy to my ogre path. the problem is that blender does not export those files for me it export only 1 mesh file (after i joined all objects) this is the model. in blender it looks fine but in my demo Ogre app it looks like : enter image description here

i can use a little help here.

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

I just tested your model with Blender 2.70 and blender2ogre 0.60. The export worked fine. I got the *mesh.xml file as well as multiple *.material files. Update to the latest versions, if you haven't yet. Also make sure that during the export dialog, the checkbox "Export materials" is selected.

If it then still renders without any material in Ogre, there are two possible causes:

  1. You have to ensure that your exported model contains UV texture coordinates, since otherwise Ogre doesn't know how to apply the texture to your model.

    In order to create those UV confidantes with Blender, you have to unwrap and UV map your model. To verify that those coordinates are there afterwards, have a look at the intermediate file from the export process, *.mesh.xml file. If you can see UVs in there it should be fine.

  2. Have a look at your Ogre.log file, if the UV part should be correct and look for any error messages, especially related to your *.material file. Maybe the texture file could not be found/loaded by Ogre.

\$\endgroup\$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .