Studio Model Data - Version 44
From NFBSP
Contents |
[edit]
Version
SMD version. This is required exactly as it appears below or it will refuse to compile.
Example:
version 1
[edit]
Node Tree Data
"Nodes" and "Bones Table" is used interchangably.
Starts with:
nodes
Ends with:
end
Each node has three parts:
| Name | Datatype | Comments |
|---|---|---|
| ID | uint | Used to identify a specific node. |
| Name | string | The name which is copied directly to the MDL. Names have a maximum length of 64 characters. |
| ParentID | int | Links this node to another node. "-1" is used to signify no parent. |
Example:
0 "Root" -1
[edit]
Skeleton Prose Data
Starts with:
skeleton
Ends with:
end
Each bone has at least two parts:
Time:
| Name | Datatype | Comments |
|---|---|---|
| Frame | int | At this frame... |
Bone(s): - Note: The compiler can only handle 128 (0-127) bones!
| Name | Datatype | Comments |
|---|---|---|
| BoneID | uint | The bone to manipulate. |
| PosX | float | X-axis location. |
| PosY | float | Y-axis location. |
| PosZ | float | Z-axis location. |
| RotX | float | Rotation (in radians) of the X-axis. |
| RotY | float | Rotation (in radians) of the Y-axis. |
| RotZ | float | Rotation (in radians) of the Z-axis. |
Example:
time 0 0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
[edit]
Triangle Block
"Triangles" block is the basis for the structure of all models.
Starts with:
triangles
Ends with:
end
Each triangle has at least two parts:
Texture:
| Name | Datatype | Comments |
|---|---|---|
| File | string | The name of the image to load not including any directories. |
Verticies:
| Name | Datatype | Comments |
|---|---|---|
| Bone | sbyte | Bone |
| PosX | float | Position X-axis |
| PosY | float | Position Y-axis |
| PosZ | float | Position Z-axis |
| NormX | float | Normal X-axis |
| NormY | float | Normal Y-axis |
| NormZ | float | Normal Z-axis |
| TexU | float | The U component of the UV texture coordinates. |
| TexV | float | The V component of the UV texture coordinates. |
| Links | sbyte | Number of bones to read. |
| Bone[0] | sbyte | First bone (as many bones as stated in Links). |
| Scale[0] | float | First bone scale (one scale for each bone). |
Example:
my_fav_texture.bmp -1 0.000000 -100.000000 50.000000 0.0000 0.0000 1.0000 1.000000 1.000000 1 -1 1.0000 -1 0.000000 -100.000000 50.000000 0.0000 0.0000 1.0000 1.000000 1.000000 2 -1 0.5000 0 0.5000 -1 0.000000 -100.000000 50.000000 0.0000 0.0000 1.0000 1.000000 1.000000 3 -1 0.2500 0 0.2500 1 0.5000
[edit]
See Also
- Quake C
- Studio Model - Version 11
- Studio Model - Version 14
- Studio Model Data - Version 10
- Studio Model Data - Version 11
[edit]
Related Tools
[edit]
