Greavesy1899 / MafiaToolkit

Open source toolkit for Mafia games. (Mafia II, Mafia III, Mafia DE)
MIT License
119 stars 20 forks source link

Animation research #66

Closed quarkblitz closed 1 month ago

quarkblitz commented 2 years ago

Animation research, based on @RoadTrain's work.

RoadTrain commented 2 years ago

@quarkblitz How well is the decoding working now? Maybe I can come up with a way to import/export these to simplify further research/debug

quarkblitz commented 2 years ago

@quarkblitz How well is the decoding working now? Maybe I can come up with a way to import/export these to simplify further research/debug

The code is based on a dumper I wrote earlier. The output of said dumper looked fine (as in no NaNs or anything weird, at least from what I noticed) for the (few) animations I tested it with. However I haven't tested playback of the decoded data on a model or something along those lines so maybe there's still something off that's hard to spot by just staring at the raw dump.

That being said, the code is entirely untested as Animation2Loader is not yet wired up anywhere in the project. It's basically a port of the loader code from the dumper, but it's well possible I got some bits wrong along the way, like range accessors for instance.

Greavesy1899 commented 1 month ago

PR has been replaced with https://github.com/Greavesy1899/MafiaToolkit/pull/99