This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
modeleditor:modelfiles [2011-06-11 12:30] Carsten Augmented the text |
modeleditor:modelfiles [2011-06-20 11:48] Carsten minor revision |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Model Files ====== | + | ====== Model Files Explained ====== |
Each model comprises several files on disk, such as the model file, material definition files, and texture images. | Each model comprises several files on disk, such as the model file, material definition files, and texture images. | ||
Line 66: | Line 66: | ||
The two ''cmat'' files are linked as follows: | The two ''cmat'' files are linked as follows: | ||
- | When the Cafu model code loads the materials of a model, it opens the main ''cmat'' file with the same base name as the model. This file contains a statement like | + | When the Cafu model code loads the materials of a model, it opens the main ''cmat'' file (''Trinity.cmat''). This file contains a statement like |
<code lua> | <code lua> | ||
dofile("Trinity_editor.cmat"); | dofile("Trinity_editor.cmat"); |