You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
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
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)
The text was updated successfully, but these errors were encountered: