-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathb3d.ksy
99 lines (75 loc) · 1.8 KB
/
b3d.ksy
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
meta:
id: b3d
file-extension: b3d
endian: le
#############################################
seq:
- id: block_count # сабмешей
type: u4
- id: blocks
type: block
repeat: expr
repeat-expr: block_count
#############################################
types:
block:
seq:
- id: one
type: u4
- id: str3df
type: str
size: 8
encoding: ASCII
- id: string48s
type: str
size: 48
encoding: ASCII
- id: floats6 # boundingBox ?
type: f4
repeat: expr
repeat-expr: 6
- id: vertex_count # вершин
type: u4
- id: face_count # граней
type: u4
- id: face_count_2
type: u4
- id: vertex_count_2
type: u4
- id: coords
type: vector
repeat: expr
repeat-expr: vertex_count
- id: polygon
type: float8
repeat: expr
repeat-expr: face_count
#############################################
vector:
seq:
- id: x
type: f4
- id: y
type: f4
- id: z
type: f4
#############################################
float8:
seq:
- id: color # цвет ? (как в o3d)
type: u1
repeat: expr
repeat-expr: 4
- id: texture_coord # для 6 для tri, 8 для quad ? (как в o3d)
type: f4
repeat: expr
repeat-expr: 8
- id: face3or4 # tri (65535) or quad
type: u2
repeat: expr
repeat-expr: 4
- id: hz_array # 6 байт окончания / в конце может текстура, как в o3d ?
type: u2
repeat: expr
repeat-expr: 3
#############################################