The Decimate operation in Blender allows you to simplify a model by reducing the number of faces or triangles in its mesh. One common way to do this is by collapsing edges. In addition to this, Blender also supports two other decimation methods called UnSubdivide and Planar. Decimating a mesh is easy:
- Load the model you want to decimate into Blender using File > Open.
In the Properties window on the right, click the
Object Modifiers button. This looks like a spanner.
The current modifiers applied on the model are displayed here. Do not remove existing modifiers. Choose Add modifier > Generate > Decimate.
To apply decimate operation, the mesh of your model needs to be a manifold. If it is not, Blender complains that the mesh is a non-manifold. You need to first fix the non-manifold elements of the mesh.
If your mesh is a manifold, then just pick one of the three decimation types:
Planar.The latter two might not be there in versions of Blender that are older than 2.65.
If you chose Collapse, then reduce the decimation Ratio. The number of resulting faces is displayed below in the modifier. But, the decimation is not applied until you click the Apply button. Do that and your mesh is decimated.
Tried with: Blender 2.69 and Ubuntu 12.04 LTS
Blender does not ship with support for exporting to OGRE mesh and skeleton. However, the Blender2OGRE addon can be used to export a Blender file as OGRE mesh, skeleton and material files.
- Download or clone the Blender2OGRE addon repository
Make sure that your Blender version is equal or greater than what is required by Blender2OGRE. You can find the minimum version required listed in the
bl_info dictionary in the file
io_export_ogreDotScene.py. If you are using a version of Blender that is older than what is required, then install a new version.
Open Blender and go to File > User Preferences > Addons > Install from file. Choose the file
io_export_ogreDotScene.py from the files you downloaded. Once the addon is added, it will appear as
Import-Export: OGRE Exporter and RealXtend. Remember to enable the addon.
If the addon was installed and enabled correctly, you must be able to see a Ogre checkbox at the right in the top toolbar. If your window width is small, you may have to move the top toolbar to the right by pressing and holding the middle mouse button.
Open the model you wish to export. Choose File > Export > OGRE3D. By default, the addon exports mesh, skeleton, texture and material files. Both XML and binary versions of the OGRE mesh are created. You can test if the export worked, by opening the
.mesh file using OGREMeshy.
Tried with: Blender 2.69 and Ubuntu 12.04 LTS
The version of Blender that ships with Ubuntu is almost always old. This is a problem because a lot of Blender addons available on the web are continuously updated to work with only the most recent versions. To be able to use these addons, you need to install a more recent version of Blender. Thankfully, there are many PPAs that offer recent builds of Blender for most Ubuntu versions.
First, I uninstalled the default version of Blender. Next, I added the PPA
ppa:irie/blender maintained by Irie Shinsuke and updated. Finally, I installed Blender from the PPA. The whole process takes only a few steps:
$ sudo apt-get remove blender
$ sudo add-apt-repository ppa:irie/blender
$ sudo apt-get update
$ sudo apt-get install blender
On Ubuntu 12.04 LTS, with this upgrade I went from Blender 2.62 to 2.69 easily 🙂
Some mesh operations cannot be performed in Blender if the mesh is non-manifold. To view the non-manifold elements of the mesh:
- Switch to
Edit Mode. The number of non-manifold elements in the mesh can be seen at the top where the number of vertices, edges and faces is displayed. For example, a non-manifold mesh of 14 faces, where 2 faces are non-manifold would be shown as
Strangely, Blender only displays and selects the non-manifold elements in Vertex or Edge select modes. It does not work in Face select mode. So, choose either the
Vertex select mode or the
Edge select mode. Next, choose Select > Non Manifold. You can also do this by pressing
Shift-Ctrl-Alt-M. The non-manifold vertices or edges are now displayed in orange and are selected for use in further operations.
Tried with: Blender 2.62 and Ubuntu 12.04 LTS
The non-manifold mesh arises while you are editing meshes using tools like Blender. Certain mesh operations cannot be performed on non-manifold meshes. A non-manifold mesh might have one or more elements with the following properties:
1. An edge incident to more than two faces.
2. Two or more faces connected only by a vertex and not by an edge.
3. Adjacent faces whose normals are pointing in opposite directions.
The above video explains these concepts beautifully in Maya.