scurest / apicula

Convert Nintendo DS .nsbmd models
BSD Zero Clause License
156 stars 17 forks source link

Export named animation, and data dump #44

Closed bonzairob closed 2 years ago

bonzairob commented 2 years ago

Hello, I've been exporting animations to collada for blender, and having to use the daesplitter.py script. I saw in another issue that you don't really want to do this splitting yourself, but would it be possible to add a console argument to export a single, named/indexed animation into the dae?

(I'm exporting from a game that has lots of animations applied to lots of models; to get a given animation, i have to --all-animations the entire ROM to attach them, then split the .dae to get the single animation I wanted. The first time I did this it filled up my hard drive.)

Secondly, as a game dev, it'd be amazingly helpful if you could do a general data dump exporter, that also exported the pattern and material animation data, to something like JSON, or something easy to parse into OpenGL.

Thanks for the awesome tool!

scurest commented 2 years ago

You should use glTF for importing into Blender, the glTF importer actually handles multiple animations in addition to having a better material model for DS models.

I'm not going to add any more features (I'd actually like to dial back features), but you can write it yourself if you're interested in it. IIRC pattern animations are trivial, but all the material animations are so poorly understood it would be worthless for me to try to dump them anyway.