Game Development Reference
In-Depth Information
7. The Flip Normals checkbox will reverse the direction of all exported
normals. Normally this can be left unchecked, but it can be useful to fix
models that have been lit incorrectly and have their normals pointing in
the wrong direction.
8. The Apply Modifiers checkbox will cause any mesh modifiers applied to
the model in Blender to be evaluated before the export data is created. This
defaults to being switched off.
9. If vertex colors have been applied to the model, they will only be exported if
the Export Vertices Colors checkbox is selected.
10. The next checkbox, Export Material Colors , determines whether materials
created during the export process will be exported with their defined colors.
11. The Export Textures and UVs checkbox should be checked if you have
texture-mapped polygons in your model.
12. Since Marmalade will need access to any images used in texturing the model,
the Copy Textures Files checkbox can be selected to ensure image files are
also copied across to the export directory.
13. The remaining settings are mostly concerned with exporting animations, so
we can ignore them for now; however, it is worth mentioning the Verbose
checkbox which logs information about the export process to Blender's
console window. This may help you solve problems with your models when
the export process doesn't work exactly as expected.
14. When all settings have been made, click on the Export Marmalade button,
which is at the top right of the Blender window. Alternatively, if you wish
to cancel the export process, there is a Cancel button underneath the
export button.
The Marmalade 3D model datafile formats
We've now seen how we can export 3D model data from a modeling package,
but we haven't yet looked at the files themselves that are generated as part of
the export process.
While we shouldn't need to make manual changes to these files, it is useful to know
a little about them as it can help to discover why a model hasn't been exported quite
as expected to.
Let's take a look at the files that would be generated for a cube model similar to the
one we created in code earlier in this chapter.
 
Search WWH ::




Custom Search