If you are working with Ogre, you will need to model and export objects to build your scene. The following instructions will help you to install and configure Blender and the Ogre scene and mesh exporter (but don’t forget to read the official threads and readme files):
- Download the latest version of the Ogre scene and mesh exporter from the official Ogre forum thread. Unzip it and read carefully the documentation included.
- Download and install the exporter supported version of Blender.
- Find the Python version that Blender is using. Download it from the official page and install it.
- Add Python installation folder to the system variable PATH. Add a user or system variable named PYTHON pointing to the Python executable.
- Download and install the Ogre Command-line Tools. You may want to update OgreMeshUpgrader.exe and OgreXMLConverter.exe with the versions compiled from the latest Ogre sources. In this case, move the installed OgreMeshMagick.exe and OgreMain.dll to a sub or separate folder. Replace the mesh upgrader and XML converter executables and the OgreMain.dll with the ones you have compiled, as explained in another post. Add any created folder to the system variable PATH.
- Open Blender and go to File -> User Preferences. Click on Addons tab. At the bottom of the floating window, click on the “Install from file…” button and select the io_export_ogreDotScene.py script.
- Make sure that the check box at the right edge of the newly created addon is selected in order to activate it. Click on “Save it as default” for loading the addon each time Blender starts.
- Restart Blender and check that two new export formats have appear at File -> Export: Ogre3D and realXtend Tundra.
- Configure Ogre exporter options in Blender. Look for an “Ogre” checkbox at the end of the Blender menus (near “Ogre Help”), whose tooltip says “toggle Ogre UI”. Check it. Then, go to the tool box at the right, scene properties, and a new section “Ogre Configuration File” should have been appeared at the bottom. Make sure that, at least, the OGRETOOLS paths are pointing to the Ogre command-line executables.
- Download and install Ogre Meshy for being able to easily load, inspect and check your exported models. Add the executable path to the “Ogre Configuration File” section of the exporter.
- Download and install ImageMagick binaries for dealing with texture image conversions. Add the executable path to the “Ogre Configuration File”.
- Optional steps:
If you need support for DDS texture files or realXtend Tundra, check the exporter readme file to download and install the utilities to support those formats.
The final step is to export the scene that Blender shows by default with a cube, a camera and a light, and check with Ogre Meshy that everything is properly exported.