*.dm (Detail Model)


About

Effect of a dynamic weather environment (e.g., rain or lightning)


Technical information

It works like this: UV descends down the Y coordinates to the texture

example

Format limitations

  • Must have one material
  • Does not support smoothing
  • Stores only one mesh
  • Mesh can have only one UV map
  • Number of vertices in mesh must be no more than 65,536

General structure

Structure description

Shader name

DataTypeDescriptionExample
shader namesThe line that specifies the name of the shader from the shaders.xr fileeffects\lightning0x00

Texture name

DataTypeDescriptionExample
texture namesA string that specifies the path and the name of the texturefx\fx_rainsplash10x00

Flags

DataTypeDescriptionExample
flagsIThese are options. Used in the file level.detailsIf 0x0, the vegetation swings in the wind (bushes), and if 0x1, it is stationary (leaves)

Minimum size

DataTypeDescriptionExample
minimum sizefThe minimum size of the model. These values are used in the level.details files-

Maximum size

DataTypeDescriptionExample
maximum sizefMaximum model size. These values are used in the level.details files-

Number of vertices

DataTypeDescriptionExample
number of verticesINumber of vertices in a mesh-

Number of indexes

DataTypeDescriptionExample
number of indexesINumber of indexes by which triangles are built-

Vertices

The vertices are stored sequentially.

The structure of a single vertex:

DataType
3D coordinate xf
3D coordinate yf
3D coordinate zf
texture coordinate uf
texture coordinate vf

Restrictions are imposed on the vertices:

  1. one vertex may have only one texture coordinate. When saving the model in *.dm, a vertex that has two (or more) texture coordinates is converted into two (or more) vertices.
  2. Their number should not be more than 65536, because their triangle indices are stored in 2 bytes.

Indexes

The indices of the vertices by which triangles are formed.

The indexes are stored sequentially.

The index structure:

DataType
vertex indexH

Programs editing this file


Sources

Source 1 Source 2