Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load MD3 animation names even when not in "player model" mode #155

Open
zturtleman opened this issue Jan 20, 2021 · 1 comment
Open

Load MD3 animation names even when not in "player model" mode #155

zturtleman opened this issue Jan 20, 2021 · 1 comment

Comments

@zturtleman
Copy link
Member

Loading MD3 player models parses animation.cfg to get the animation names. This isn't available for most standalone MD3 models. Misfit/Maverick save the animation names in the MD3 frames but frame names are ignored when loading MD3 models and hard coded "AnimFrames" name is used. MD2 importer however creates animations from frame names.

The main hold up (for loading MD3 frame names as animations, based on the MD2 importer) is that MD2 export/import has a hack to add an underscore between animation names ending with a number and the frame number (first frame of "example1" should be "example100" but an underscore is add as in "example1_00") and then Misfit/Maverick remove the underscore when loading the model. Otherwise Misfit/Maverick removes all trailing numbers and "example100", "example200" become one animation ("example"). Adding an underscore in MD3 frame names would break exporting models for Sonic Robo Blast 2 which is the only thing that I know uses MD3 frame names.

I've started working on more robust frame name parsing so that adding an underscore at export isn't needed. I need to more thoroughly test it and fix edge cases. (Which is complicated by licensing since I plan to also use this frame name parsing code in a non-GPL project. It would be a problem if changes to it are submitted to Maverick as GPL. So I guess it needs it's own file with zlib license or something.)

Originally posted by @zturtleman in #147 (comment)

@quakemmo
Copy link

quakemmo commented Mar 2, 2021

Bumping this up for good measure!

@zturtleman zturtleman added this to the MM3D 1.3.13 milestone Sep 21, 2021
@zturtleman zturtleman changed the title MD3 animation names not loaded when not in "player model" mode Load MD3 animation names even when not in "player model" mode Oct 8, 2021
@zturtleman zturtleman modified the milestones: MM3D 1.3.13, MM3D 1.3.14 Oct 8, 2021
@zturtleman zturtleman modified the milestones: MM3D 1.3.14, MM3D 1.4.0 Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants