zturtleman / mm3d

Maverick Model 3D is a 3D model editor and animator for games.
https://clover.moe/mm3d
GNU General Public License v2.0
115 stars 23 forks source link

SMD export doesn't seem to export animations properly #76

Closed orange451 closed 5 years ago

orange451 commented 5 years ago

I use ASSIMP for model loading in my engine. I've loaded a few SMD animations that I decompiled from their respective MDL models, and they load fine in my engine. When I load a SMD generated from misfit, my models are missing both animations and keyframes.

Upon import: Only 1 animation is created and that animation contains only 1 keyframe.

zturtleman commented 5 years ago

A SMD file only contains meshes and bind pose or a single animation. The model and each animation has to be manually exported to a separate file from Maverick (model.smd, anim1.smd, anim2.smd, ...).

orange451 commented 5 years ago

Oh my apologies for the misunderstanding. How do I export each separate animation from Maverick? Do I have to re-save for each animation? Would it be possible to create some sort of batch animation export where it'll export EVERYTHING (and all the files required) into a directory?

zturtleman commented 5 years ago

Currently each animation has to be saved separate from File -> Export -> Choose filename with .smd extension. Export a "Reference" model type for meshes / skeleton and then export again with "Animation" model type for each animation. Batch export is missing; partially because the filename has to be chosen before what to export.

orange451 commented 5 years ago

Perhaps for the batch export, the user defines the name for just the reference model, then Maverick will create an additional folder of the same name, and export each animation (using the name of the animation as the filename). This is how MDL decompiling tools (such as crowbar) work.

orange451 commented 5 years ago

Also, thanks for creating SMD export. I was able to get it to load into my engine: https://i.imgur.com/NyOEuff.gif

There's no animation smoothing yet.