Pherakki / Blender-Tools-for-DSCS

This repository provides a work-in-progress addon for Blender 2.8 that can (to some degree) import model files from the PC version of Digimon Story: Cyber Sleuth. It provides new options in File > Import and File > Export named "DSCS Model", which should be pointed towards 'name' files in the game data. The file format is mostly understood; but some bugs remain and there are some Blender issues yet to be understood. Also has experimental support for the PS4 version, and for Megido72.
MIT License
24 stars 5 forks source link

Fast animations export slightly inaccurately #7

Closed Pherakki closed 3 years ago

Pherakki commented 3 years ago

See: cam_chr005_bv01.anim

Pherakki commented 3 years ago

Bug was due to some over-zealous interpolation in the frame integerisation step... for frames that were already integers, the interpolator would replace the frame value with an interpolation between its neighbours. Since this bug should only ever occur for frames where the frame index is exactly an integer, the fix is to replace the less-than and greater-than comparators with less-than-or-equal or greater-than-or-equal, so the interpolation is between two identical values at the integer frame. See the alteration to the comparators in f1c6e8f703dc12ecafb5dc4c62bae4d5a154b6aa.

Small fix but annoying to track down... and not the prettiest solution, but it works.