Animation: Difference between revisions

m
+finish
m (+finish)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{finish}}
Oni has a very complex animation system (500 anims per character on the average). Without a little bit of organization, it would have been an awful mess (I mean, even more awful than it is now).
Oni has a very complex animation system (500 anims per character on the average). Without a little bit of organization, it would have been an awful mess (I mean, even more awful than it is now).


----
==Animation==
==Animation==
===Body===
===Body===
The great majority of animations define the relative orientations of the 19 bones at keyframes (keyframes for different bones are not simultaneous).
The great majority of animations define the relative orientations of the 19 bones at keyframes (keyframes for different bones are not simultaneous).
===Overlay===
===Overlay===
A few animations define orientations in "another way". Instead of 6 bytes (3 quantized Euler angles), 16 bytes are used (4 quantized somethings).
A few animations define orientations in "another way". Instead of 6 bytes (3 quantized Euler angles), 16 bytes are used (a quaternion).
 


----
==State==
==State==
*[http://geyser.oni2.net/anim/state.txt Overview table of the 70 states] (TXT)
[[XML:StNA#Animation_states|Overview table of the 70 states]]
===Transitions===


: The XML version of the states can also be looked up at ''onisplit -help enums''


----
==Type==
==Type==
*[http://geyser.oni2.net/anim/type.txt Overview table of the 233 types] (TXT)
[[XML:StNA#Animation_types|Overview table of the 233 types]]
 
: The XML version of those types can also be looked up at ''onisplit -help enums''


A few anim types are not used in Oni.
A few anim types are not used in Oni.


There are much more types then states : they define transitions at a finer level.
There are much more types than states : they define transitions at a finer level.


----
==Collections==
==Collections==
A lot of animations (basic movement) is shared between many characters. To avoid duplicating anim links, anims are organized in collections called TRAC (Totoro Animation Collection). For information about the binary storage of a TRAC, see [[OBD:TRAC|HERE]]
A lot of animations (basic movement) is shared between many characters. To avoid duplicating anim links, anims are organized in collections called TRAC (Totoro Animation Collection). For information about the binary storage of a TRAC, see [[OBD:TRAC|HERE]]
Line 34: Line 31:


===Inheritance===
===Inheritance===
Oni's TRACs are organized along the following unary trees :
Oni's TRACs are organized along the following trees :


;Notes
;Notes
Line 40: Line 37:
:click on the collection name to see an overview of the animations
:click on the collection name to see an overview of the animations
:(I'll be updating those with states and types etc)
:(I'll be updating those with states and types etc)


'''konokocore''' : 536 anims
'''konokocore''' : 536 anims
Line 68: Line 64:
:[http://geyser.oni2.net/anim/overlay.txt overlay anims] (116)
:[http://geyser.oni2.net/anim/overlay.txt overlay anims] (116)
:[http://geyser.oni2.net/anim/misc.txt miscellaneous anims] (this list will get bigger because of level 0)
:[http://geyser.oni2.net/anim/misc.txt miscellaneous anims] (this list will get bigger because of level 0)
[[Category:Engine docs]]