Exporting Models as Ogre XML meshes from Blender
Blender Buffer Clearing should be performed prior to exporting any model from Blender. |
To export your models as Ogre XML meshes with materials:
-
jMonkeyEngine requires a material file to be named the same name as the model so prior to opening the export dialog make it so. The model will export files named
ModelName.mesh.xml
with aModelName.material
, plus (optionally)ModelName.skeleton.xml
, and some JPG files. -
Open the menu
to open the exporter dialog.
-
In the
File Path
field: Select a target sub-directory of yourProject Assets/Textures/
directory. E.g.Project Assets/Textures/ModelName/
. See Best Practices. -
In the panel at the bottom left of the export window toggle the following export settings: - Swap Axis: xz-y
-
Click Export Ogre.
You can now use the jMonkeyEngine SDK to load and view models. You can create scenes from them and write code that loads them into your application.