User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
modeleditor:level-of-detail_models [2012-03-30 11:40]
Carsten added the text body
modeleditor:level-of-detail_models [2012-03-31 11:19]
Carsten revised / rephrased the text
Line 32: Line 32:
 ===== Creating LoD models ===== ===== Creating LoD models =====
  
-''​.dlod''​ files cannot be created ​by the Model Editor. ​The are simple text files that you have to create yourself, using a programmers text editor.+''​.dlod''​ files cannot be created ​in the Model Editor. ​They are simple text files that you have to create yourself, using a programmers text editor.
  
 Here is an example, taken from ''​Games/​DeathMatch/​Models/​Static/​TonneTest.dlod'':​ Here is an example, taken from ''​Games/​DeathMatch/​Models/​Static/​TonneTest.dlod'':​
Line 45: Line 45:
 Each line lists a concrete model and the distance up to which the model is rendered. Each line lists a concrete model and the distance up to which the model is rendered.
  
-Some notes: 
   * The distance for the last, farthest model is optional. If given, it is ignored: the last model is used up to infinity.   * The distance for the last, farthest model is optional. If given, it is ignored: the last model is used up to infinity.
   * The file names are relative to the path of the parent (''​.dlod''​) file. Valid examples include ''​a/​x.cmdl''​ and ''​..\y.ase'',​ whereas ''​c:​\z.mdl''​ is invalid.   * The file names are relative to the path of the parent (''​.dlod''​) file. Valid examples include ''​a/​x.cmdl''​ and ''​..\y.ase'',​ whereas ''​c:​\z.mdl''​ is invalid.
-  * The numbers are given in Cafu world units (which are currently ​NOT the same as CaWE world units: they are only 1/25.4 of the Ca3DE units!). In Cafu worlds, each unit is 1 millimeter. 1000 units are one meter or 3.2808 feet.+  * The numbers are given in Cafu world units (which are currently ​//​not// ​the same as CaWE world units: they are only 1/25.4 of the Cafu units!). In Cafu worlds, each unit is 1 millimeter. 1000 units are one meter or 3.2808 feet.
   * In many ways, the first model in the list is "​responsible"​ for the collective: The Cafu Engine gets the bounding boxes, number of animation sequences etc. all from the first model. Ideally though, all models should have the same BB, same (logical) animation sequences, etc.   * In many ways, the first model in the list is "​responsible"​ for the collective: The Cafu Engine gets the bounding boxes, number of animation sequences etc. all from the first model. Ideally though, all models should have the same BB, same (logical) animation sequences, etc.
  
modeleditor/level-of-detail_models.txt ยท Last modified: 2013-01-07 12:07 (external edit)