ich hab mal die zusammenhänge wie ich sie vermute farblich markiert, aber kA ob das so stimmt, ich kenne mich damit ned aus..Mo3pp3l wrote:Könnte bitte jemand (der es verstanden hat) erklären wie sich die Fields / Flags genau zusammensetzen.Animation frame
The most tricky part of scene file, the frame syntax was a mystery for a long time.
Example of animation frames:
{ 0xa002; 515; 7591; -3869; 0.000000; 0.000000; 0.000000; 0.000000; 0.0;0.0;0.0;0.0;0.0; 222; 1; } // 0
{ 0x8012; 0.333333; 0.000000; 0.000000; 1.000000; 0.0;0.0;0.0;0.0;0.0; 222; 2; } // 1
The key to animation frame is the first number. This number holds various flags which define what data are present in the frame.
Fields
(position is always present unless FLAG_SAMEPOS is present)
* FIELD_ROT (0x2) - rotation is present
* FIELD_4 (0x4) - unknown (never used)
* FIELD_TARGETPOS (0x8) - target position is present
* FIELD_SAMESCALE (0x100) - not used
* FIELD_COLOR (0x200) - color information
* FIELD_FOV (0x800) - field of view is present
* FIELD_POSTCBINFO (0x4000) - position TCB info
* FIELD_ROTTCBINFO (0x8000) - rotation TCB info
* FIELD_POSBEZINFO (0x10000) - position bezier info
* FIELD_TPOSTCBINFO (0x20000) - target position TCB info
Flags
* FLAG_LINEAR (0x1) - linear position controller
* FLAG_BEZIER (0x80) - bezier position controller
* FLAG_SAMEPOS (0x10) - same position as in previous frame
* FLAG_SAMEROT (0x20) - same rotation as in previous frame
* FLAG_SAMETARGET (0x40) - same target
* FLAG_SAMECOLOR (0x400) - same color
* FLAG_SAMEFOV (0x1000) - same field of view
* FLAG_ABSROT (0x2000) - rotation is absolute (euler xyz controller)
* FLAG_FAKEROTTCBINFO (0x40000) - unknown
Also am Besten kurz erklären wie 0xa002 und 0x8012 aus dem Bsp. oben zustandekommen und was sie bedeuten.
Ich denke den Rest werde ich dann selbst herleiten können.
Danke schonmal.
Gruß
Mo3pp3l
(die zweifarbige rot/cyane 8000 und die cyane 4000 ergeben zusammen die a000
