CTR-tools / CTR-tools

Crash Team Racing (PS1) tools - a C# framework and a set of tools by DCxDemo to parse files found in the original kart racing game by Naughty Dog (and a bit of Crash Bash too).
https://discord.gg/WHkuh2n
GNU General Public License v2.0
157 stars 14 forks source link

[viewer] Add animated models support #192

Open DCxDemo opened 11 months ago

DCxDemo commented 11 months ago

Since animation compression is cracked, can add animation to kart models.

DCxDemo commented 10 months ago

Animation support requires complete overhaul of rendering system, as currently every model is split by textures and treated as separate lists. cant really apply vertex buffer changes without order recalculations.

Proper approach is to use fixed vertex buffer + use index buffers per material. this way can animate entire vertex buffer separately and still use same set of texture indices.

DCxDemo commented 10 months ago

Progress in https://github.com/CTR-tools/CTR-tools/commit/b15999e5f58c99a00ec2ac47f17e2c7f7e4057bf