zturtleman / mm3d

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

Add/delete items to a model with frame animations #172

Open Enjay001 opened 2 years ago

Enjay001 commented 2 years ago

I was wondering if it would be possible to add the functionality of being able to add/remove things to a model that has frame animations?

At present, if you try to do this you get the message: Cannot add or delete because you have frame animations. Try "Merge..." instead. But merge, in this particular situation, is rarely useful.

In the really old Quake modeller (QME), you could both add and remove items from an animated model. Adding, say, a cube would just add the cube at exactly the same coordinates in every frame (so it was then up to the modeller to position the cube frame-by-frame how they wanted). Deleting an item (e.g. a group, vertex, whatever) meant that the item simply disappeared from every frame because it was no longer part of the model.

Several times in the past I have made a model, animated it, but then wanted to remove a bit of it for a variety of reasons. However, this cannot be done with Maverick (or in Misfit before it). It would be nice if functionality similar to QME could be added if it is possible and not too much work.

Thanks for reading.

zturtleman commented 2 years ago

I've added support for removing vertexes from models with frame animations in ec713204bfe1876585457458ab1ab4c9dbfecbdf. I previously added support for adding and removing groups (just the name/material, not vertexes) and points in 6515b20 and fcf167a.

It's still missing support for adding vertexes (without having to use Model -> Merge). The commit for removing vertexes (ec713204bfe1876585457458ab1ab4c9dbfecbdf) also fixed adding vertexes but it's still disallowed as create cube, cylinder, etc tools don't work properly yet.

Enjay001 commented 2 years ago

Very cool, thank you.

To be honest, vertexes were the most important part of this. If I can delete a vertex, I can delete anything. ;)

Adding stuff via merge certainly works. It means a few more steps over being able to add items directly, but it's certainly doable. So you've already covered the most important aspects of this request/suggestion.

Thanks again.