Jump to content

XML:TRAM: Difference between revisions

553 bytes removed ,  26 July 2019
illustrations of TRAM interpolation
(adding in the new Shortcuts information)
(illustrations of TRAM interpolation)
Line 138: Line 138:
             </Shortcuts>
             </Shortcuts>


 
[[Image:TRAM interpolation - standard case.jpg|thumb|400px|left|Scenario A: hardcoded interpolation 8 frames long; scenario B: changeable interpolation frame number]]


|-
|-
Line 316: Line 316:
|
|
* interpolates first X frames of next animation
* interpolates first X frames of next animation
* if the first follow-up animation is to short, it can continue to play even further
* if the first follow-up animation is to short, it can continue to play even further (not observed with vanilla)
* ''automatic'' interpolation of COMidle to COMattack remains a fuzzy subject (might be hard-coded)
[[Image:TRAM interpolations - end interpolation bigger than next anim.jpg|thumb|400px|left|"end" interpolation covering multiple follow-up animations]]
|-
|-
| <Max>
| <Max>
Line 840: Line 840:
==Interpolation drifting==
==Interpolation drifting==
===Issue===
===Issue===
Needs update.
[[Image:chr_debug_characters_shows_interpolated_animations.jpg|thumb|200px|right|5th line: current interpolation frame/total interpolation frames, TRAM name, current frame/total frames]]
[[Image:chr_debug_characters_shows_interpolated_animations.jpg|thumb|200px|right|5th line: current interpolation frame/total interpolation frames, TRAM name, current frame/total frames]]


Line 867: Line 869:


  KONCOMpunch_fw 0/37
  KONCOMpunch_fw 0/37
===Proposed solution===
To compensate this phenomenon you can add a Z position offset to the pelvis either manually or by script.
The offset would be applied to each keyframed Z position that is higher than 7 frames, if missing, create a Z keyframe at frame 8.
By changing the later positions by the same amount only the delta value of frame 0 to frame 8 will increase - compensating z translation ITO shortens.
===ToDo===
* create easy repeatable test setup
* determine type of interpolation (is it linear?)
** record and compare positions of each frame of ITO and programmatically played animation
* write script to alter the Z keyframes (8 to last)
* finetune the script if necessary by taking into account interpolation type






<!--
There is an XSI script that can do this: http://mods.oni2.net/node/358 -->




{{XML}}
{{XML}}
8,013

edits