-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMF.txt
45 lines (36 loc) · 878 Bytes
/
CMF.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Compiled Map Format
-------------------
Author: Stefan Hajnoczi
Version: 2
Date: 26 May '01
Header:
3 char CMF ID ("CMF")
1 char Version byte
1 uint Number of WAD files
1 uint Number of entities
1 uint Number of textures
x char WAD filenames (zero terminated)
x char Texture names (zero terminated)
x Entity Entities
Entity:
x char Entity class (zero terminated)
1 uint Number of properties
x Property Entities properties
1 uint Number of polygons
x Polygon Polygons
Property:
x char Property name (zero terminated)
x char Property value (zero terminated)
Polygon:
1 uint Texture ID
1 Plane Polygon plane
1 uint Number of vertices
x Vertex Vertices
Vertex:
1 Vector3 Coordinate
2 double u and v texture coords
Vector3:
3 double x, y, and z component
Plane:
1 Vector3 Normal
1 double D