-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanb.ksy
91 lines (80 loc) · 1.45 KB
/
anb.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
meta:
id: anb
file-extension: anb
endian: le
seq:
- id: header
type: header
- id: meshes
type: mesh
repeat: expr
repeat-expr: header.submesh_count
- id: sets
type: set
repeat: expr
repeat-expr: header.set_count-1
types:
header:
seq:
- id: set_count
type: u4
- id: submesh_count
type: u4
- id: vertex_count
type: u4
- id: uvs_count
type: u4
- id: face_count
type: u4
mesh:
seq:
- id: vertices
type: vertex
repeat: expr
repeat-expr: _root.header.vertex_count
- id: faces
type: face
repeat: expr
repeat-expr: _root.header.face_count
- id: texture_coord
type: texcoord
repeat: expr
repeat-expr: _root.header.uvs_count
- id: faces_2
type: face
repeat: expr
repeat-expr: _root.header.face_count
set:
seq:
- id: vertices
type: vertex
repeat: expr
repeat-expr: _root.header.vertex_count
vertex:
seq:
- id: x
type: f4
- id: y
type: f4
- id: z
type: f4
- id: n1
type: f4
- id: n2
type: f4
- id: n3
type: f4
face:
seq:
- id: v1
type: u2
- id: v2
type: u2
- id: v3
type: u2
texcoord:
seq:
- id: s
type: f4
- id: t
type: f4