This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
modeleditor:modelfiles [2011-06-04 11:09] Carsten created (to be completed) |
modeleditor:modelfiles [2011-06-10 12:19] Carsten Augmented the text |
||
---|---|---|---|
Line 10: | Line 10: | ||
===== One directory per model ===== | ===== One directory per model ===== | ||
- | FIXME | + | |
+ | Although not a technical requirement and not enforced by the Cafu model code, it is highly recommended to save each model in a directory of its own. This | ||
+ | |||
+ | * explicitly groups all files that logically form and belong to the model, and | ||
+ | * makes packaging a complete model in a single ''my_model.zip'' archive possible, so that the model can easily and safely be distributed, shipped and handled. | ||
+ | |||
+ | The name of the directory should match the file name of the model. That is, if your model's name is ''Trinity.cmdl'', it should be stored in the directory with the same name ''Trinity/'' (or in a zip archive with the same base name ''Trinity.zip''). | ||
+ | |||
+ | Note that when you are saving a new model that does not yet have a separate directory, you can use the "New Folder" button (or right-click context menu) of the "Save" dialog to create such new directories as required. | ||
===== cmdl model files ===== | ===== cmdl model files ===== | ||
- | FIXME | + | |
+ | The ''cmdl'' file is the main file of the model: It contains the definitions for the skeleton, the meshes and the animation sequences of the model. | ||
+ | |||
+ | The Cafu Engine and the Model Editor load ''cmdl'' files as [[http://www.lua.org/|Lua]] scripts, and as such they can be inspected or edited in a text editor if desired. | ||
+ | |||
+ | Besides the main ''cmdl'' file, the Model Editor also creates a ''cmdl_bak'' file that is the file before it was last saved. | ||
===== cmat material definition files ===== | ===== cmat material definition files ===== | ||
FIXME | FIXME | ||
+ | |||
===== Texture images ===== | ===== Texture images ===== | ||
FIXME | FIXME | ||