Dramatis 3d Personae

dramatis3d woodcut created using AI

I'm pretty good at writing software libraries, but damned if I know how to market them. So, I asked Claude and Gemini to look at the stuff I've been working on and pick one thing I should try to promote.

Claude picked the Character Builder component from tosijs-3d and made a very compelling argument. Gemini rambled on about my AJS safe eval virtual machine.

I told Gemini what Claude said and it retracted everything. It agreed that Claude was right.

The result is Dramatis3d: a free, open source character creator that runs in your browser and exports rigged, animated characters that load straight into three.js, Unity and Godot. Here's why I think it should exist.

Fractal Poser

Fractal Design was an amazing 1990s company. It's long gone now, but if you've ever used a program like ArtRage, which simulates the way paint lies on a textured surface, or how watercolors mix while they're wet, or how much paint your virtual palette knife has left in a given spot, Fractal pioneered all of that. (Their first program was Painter; Sketcher was a cheaper version that did only pencils and charcoal.) Painter X2 even had layer compositing (its "floaters") before Photoshop did: Photoshop only got layers in version 3, in 1994. And another program they published was Poser, a virtual mannequin you could pose for purposes of drawing. Today it mostly seems to be used to create interactive porn novels.

I've bought many versions of Poser over the years, but they've all had five things in common: they're buggy as hell, they somehow manage to run slowly no matter how good hardware gets, they produce ugly renders, the user interface is awful, and the meshes they produce are super heavy.

MakeHuman

Years ago there was an open source attempt to produce something like Poser but where you'd have total rights to use the exported meshes for anything. It's called MakeHuman and it is still around (kind of), as is MPFB, a MakeHuman plugin for Blender.

If anything I'd say MakeHuman is probably better than Poser in a lot of ways, but the project is unstable and the meshes are heavy and so on. What it does have is a huge body of CC0 content: base meshes, morphs, skins, clothes and hair that anyone can use for anything.

Bone Heat

I know from past history that rigging 3d meshes has gone from being a horrible chore to almost trivial thanks to a paper at SIGGRAPH years ago: Automatic Rigging and Animation of 3D Characters. The algorithm was almost breathtakingly simple. It imagined each bone radiating heat onto the surface of the mesh and then generated weights based on the amount of heat a given vertex received. That's it.

Ideas like this made it possible for Mixamo to load a mesh in a web browser and animate it in seconds. I remember painting vertex weights manually. I remember scaling cylinders around individual bones and then testing "range of motion" animations. And then I remember never doing any of that tedious crap again.

Mixamo

I've mentioned Mixamo already, but this is a project that never quite took off. Adobe bought it and doesn't seem to know what to do with it, so it's free now but might disappear any minute. The basic idea is you can upload a mesh, rig it, target a library of animations to it (many of them very good) and export and use the results. For game development it was good enough to pay for (and probably put a lot of animators out of work) and really still is, except it's on life support. The idea was to create a marketplace for animators and take commissions but… it failed to thrive.

So…

Character Builder

character builder and biped playground

Like many game developers, I'd like to be able to design a character (or find a character someone else has designed), customize it, rig it, add animations to it, and use it in my game. Ideally really quickly and easily and for free. And for the tool to still be around next year (unlike, say, Ready Player Me, which got acquired by Netflix and left its users in the cold—but again, it was on life support already and never figured out a path to profitability).

The math and algorithms are all published and well understood. This stuff should be easy.

So I built the character-builder component for tosijs-3d. This lets you build a mesh using MakeHuman content or just load any mesh you have. Rig it (if it's not already rigged) or retarget its rig (if it is), add clothes, hair, spring animations (for cloaks, tails, and hair), and just use it.

Not everything is ready for export. E.g. in character-builder you can quickly build out clothing items, and if you want, export them as GLB, tweak them and add materials, and then bring them back in.

tailor uses booleans to quickly build out clothes (not in Dramatis3d yet)

The tailor, in tosijs-3d's character builder. It isn't in Dramatis3d… yet.

Anyway Claude said (I paraphrase), wait, that's a freaking product. All you need is to be able to export that rigged, animated character straight into three.js, Unity, and maybe Unreal Engine and Godot and people will use it.

Dramatis3d

So that's what I did. It's called Dramatis3d. It lets you customize a MakeHuman character complete with clothes, then export it as a GLB and load it straight into three.js, Unity or Godot, or share the character as a link (the whole character fits in the URL).

What's in the file matters more than the file format:

Dramatis uses MakeHuman's CC0 content, but none of MakeHuman's code (which is AGPL): the logic is reimplemented from their file formats. So the characters you export are yours.

Three.js, Unity and Godot are tested: the exports import with default settings and no fixes, and each engine is checked for the skeleton, the face, and an animation that actually plays. Unreal 5 has a written guide that nobody has run yet.

It's Apache 2.0 licensed. At some point I might add cloud features, such as support for studio workflows, and charge for those. But paid features will never touch the file format, and nothing that's free will move behind a paywall.

Open the creator, export a character, and drop it into the viewer or follow the guide for Unity or Godot. The code is on GitHub.

— Tonio Loewald,