| 1 | = General Guidelines for Meshes = |
| 2 | |
| 3 | This page sets some basic guidelines for meshes in Orxonox, much like a styleguide for programmers. Read this '''before''' you start with your model, it makes thing allot easier. |
| 4 | |
| 5 | ==== Polygon count ==== |
| 6 | [[Image(Faces.PNG, right)]] |
| 7 | Reduce your number of polygons to the absolute minimum (for comparison: the main ship 'assff' only has about 800 Polygons). Don't create details which can't be viewed in the game. You can check the current number of Faces (Fa) of your model directly in Blender (Object Mode). Note that the final model in Orxonox will only have triangles, so the final number of polygons in Orxonox may differ. (in Edit Mode navigate to the Menu 'Mesh/Faces/Convert Quads to Trinagles' or CTRL T to get a more accurate number). |
| 8 | |
| 9 | ==== Double Vertices, Strange Shapes ==== |
| 10 | |
| 11 | Before you export a model check if you have by accident created anything that could mess your mesh up. In Edit Mode select your whole Model (A) then navigate to 'Mesh/Vertices/RemoveDoubles' to remove any overlapping vertices. Also don't create any very slim shapes or too sharp corners as they will not turn out well. |
| 12 | |
| 13 | ==== Name Your Materials and Objects ==== |
| 14 | [[Image(Material.png, right)]] |
| 15 | Make sure your materials don't still have the generic name ('Material', 'Material.001', ...), otherwise Orxonox might not choose the correct material for your model. Ogre generates a database of all materials used and the primary key is the name of a material. So if two materials have the same name, the first one to be located is chosen (usually not the right one). The material name is assigned just above the mesh name (see picture). Note: if you have more than one material assigned to a specific object you must scroll through all of them and assign a unique name for each. |