forked from ginkgo/pink-pony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmesh.proto
64 lines (49 loc) · 1.19 KB
/
mesh.proto
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
package mesh;
message Mesh {
message Layer {
required string name = 1;
required int32 columns = 2;
required int32 rows = 3;
repeated float data = 4;
}
repeated Layer layers = 1;
repeated uint32 indices = 2;
required int32 primitive_type = 3;
}
message Quaternion {
required float r = 1;
required float i = 2;
required float j = 3;
required float k = 4;
}
message Vector {
required float x = 1;
required float y = 2;
required float z = 3;
}
message Transform {
required Vector translation = 1;
required Quaternion rotation = 2;
}
message Animation {
message Keyframe {
required float time = 1;
repeated Transform bone_transforms = 2;
}
required string name = 1;
required float duration = 2;
repeated Keyframe keyframes = 3;
}
message Skeleton {
message Relationship {
required int32 parent = 1;
required int32 child = 2;
}
message Bone {
required string name = 1;
required Transform transform = 2;
}
repeated Bone bones = 1;
repeated Relationship hierarchy = 2;
repeated Animation animations = 3;
}