goat3d

view doc/goatanimfmt @ 51:fa5c52ea9d59

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 17 Jan 2014 18:16:09 +0200
parents b35427826b60
children
line source
1 Goat3D animation file format
2 ----------------------------
4 Chunk structure
5 ---------------
6 Multiple tracks might apply to the same node, to allow for different
7 interpolation, extrapolation, and time ranges between position, rotation, and
8 scaling tracks.
10 ANIM
11 +--ANIM_NAME
12 | +--<STRING>
13 +--TRACK
14 +--TRACK_NAME
15 | +--<STRING>
16 +--TRACK_NODE
17 | +--<STRING> (name of the scene node using this track)
18 +--TRACK_ATTR
19 | +--<STRING> (specify the attribute affected, see NOTE1)
20 +--TRACK_INTERP
21 | +--<STRING> ("step", "linear", "cubic")
22 +--TRACK_EXTRAP
23 | +--<STRING> ("extend", "clamp", "repeat", "pingpong")
24 +--TRACK_KEY
25 +--TRACK_KEY_TIME
26 | +--<INT> (time in milliseconds)
27 +--TRACK_KEY_VALUE
28 +--<FLOAT|FLOAT3|FLOAT4>
30 NOTE1: The attribute might be any user-defined string, but the following
31 standard attribute names are specified:
32 - "position" keys are (x,y,z) vectors
33 - "rotation" keys are (x,y,z,w) quaternions, with w being the real part
34 - "scaling" keys are (x,y,z) scale factors