ultimate-research / ssbh_lib

Reading and writing SSBH file formats in Rust
MIT License
8 stars 3 forks source link

Test floating point anim decompression using an emulator #140

Closed ScanMountGoat closed 1 year ago

ScanMountGoat commented 1 year ago

The current test cases are based off of the old C# code, which is known to have bugs. A more accurate solution is to base the values on the output of Ryujinx. This only works well for material animations that don't change over time and have easily observable values like vector and float animations. ssbh_data can force compressed output for constant values like this to generate the appropriate test data. This allows for testing the conversion between compressed bits and floating-point numbers.