Dev Roadmap #11: Preamble (Patreon)
Content
Hey friends!
I have a very special announcement today - something I've been grinding on for several weeks now with a very hard push in the last week. I'm going to start by waxing poetic, so go here if you want to skip right to the news.
As I have learned over the last few years, animating is a bitch and a half. There are a million "good" reasons for this that I will crudely designate as the art of animation. And there are a million stupid, logistical, procedural, UI, etc. reasons why it can be (and has been) an absolute slog.
I don't think it's much of a secret that rigging and animating our Live2D models has been the biggest thorn in my developer side since we adopted it. I've tolerated it for this long because of how important it was for me that TNH had beautiful fluid animations, but I think you could make a strong argument that it has slowed down my throughput significantly.
Why is that? I'll split the reasons into four categories.
(I just want to preface at this point that this all describes my experience with Live2D - it is completely possible that I am using it in stupid and non-intuitive ways. The things that I find difficult might be things others love!)
1) Logistics and interfaces
Live2D is a proprietary software, with all model editing through the Cubism Editor. Which means you have to use its interface. My workflow for creating a model up until now has been:
a) Import the (meticulously organized) PSD of the model's art, logically named and organized into folders to make viewing and editing the art straightforward for myself and the various artists who interact with the PSDs. Live2D turns this into a flattened array of drawables, preserving (some) of the folder structure.
b) In Cubism Editor, organize the art into proper folders that correspond to logical units of the art (e.g. all of the layers for a single clothing variant) while correctly encoding the draw order of the individual layers so they continue to render correctly.
c) Wire up deformers and parameters to control the visibility of these units - these parameters act as the state toggles of the model.
d) Coordinate all of the clipping masks required to make layers interact correctly.
e) Organize the various textures of the model into a texture atlas that is packed as optimally as possible while supporting features like 1) downsampling of textures that don't need to be full res and 2) grouping of textures such that I can selectively cache the textures the model is using without saturating VRAM with a bunch of unused textures.
For a model like Rogue's standing pose, the above process takes me on the order of 6 hours of locked-in time. You'll notice I haven't even touched animations yet, this is just to get the model rigged so that its static form renders correctly in the game engine. It is tedious work. And it is both utterly automatable and easily non-deterministic -> a sleepy Ron might make a slightly different organizational choice in one model than in another that causes headaches, especially when trying to reproduce it later (see below). Why can't it be automated? Because Cubism Editor doesn't expose APIs that would help you do any of this programmatically. You're stuck doing it in the UI, dragging-and-dropping all day long.
2) Nested deformer inheritance
Live2D uses a standard nested deformer model for animating keyframes - you place a drawable into a parent deformer, and now the drawable's mesh will move under the influence of the parent deformer's lattice. That's really useful: you can have a deformer that controls breast movement (i.e. is the parent of the breast layers) and then place the breast deformer as a child of an overall body deformer that controls body sway -> the deformations compose, and the breasts can move independently of the body without losing layer coherence. And if you separate the breast layers into a left and right breast, you can independently animate them with separate deformers that can both go in the parent deformer for even more independence. A parent deformer can have multiple children.
Here's an annoying scenario though: what if you have a layer like a shirt, that can't be easily separated into "left breast" and "right breast" parts? You could nest multiple deformers, with the outermost controlling the left breast and the innermost controlling the right, but that isn't very intuitive, and it doesn't scale - if your clothing animation needs become more complex (e.g. a dress with breast movement and a hem that bounces and sways), you're accumulating a lot of deformers that have to nest nicely. This is one of the reasons why VTuber models have lots of drawables associated with each clothing item, but that comes at a cost as well and limits how many clothing items we could realistically generate and render.
The other obstacle here is that, in principle, you'd want to synchronize the deformation of the actual breasts with the deformation of the breast-covering clothing - i.e. have them under a shared deformer. Nested inheritance once again makes that difficult to coordinate in practice.
To state simply what I believe is the solution to this: allow a child drawable to have multiple parents. You cannot do this in Live2D (to my knowledge).
3) Reproducibility, maintenance, and updating
Okay, we've rigged our model, we've gone through the slog of animating it and generating physics, and it looks chef's kiss. Export it, close it, and never open again.
Except, six months later, we want to add new hairs, or clothing items, or tweak some animations, or add a threesome module. Maybe the PSD changes size to accommodate a new character. Live2D supports re-importing and updating PSDs, so you do so. A miracle: the new layers look right! We'll just slot them into the existing rig in the right places and animate them anew the same way we animated all of the other clothing items. Hope you remembered how you organized everything.
Or maybe you aren't so lucky and the new PSD doesn't import well, and you're left with a mess. Is it worth trying to figure out what that idiot Ron did six months ago, or should you just start fresh? Maybe you don't have the option anyways - you've figured a new better way to organize the models that requires ripping it up and starting again. Either way, you're out of an asston of work.
Iterate every few months x the number of models as the game steadily expands.
4) Modding
You can't. It's a closed source file format. The best you can do is edit textures within the existing meshes, and you can't even do that if I compress the textures for performance (sorry).
So, what do we do? How do I make this a process that is sustainable for me and not a fucking timebomb? How do we support the creativity of the community?