Studio › Manual › More tools

Rig Character

Room > Animation > Rig Character… (⌃⌥⇧⌘R) gives a still humanoid model (a GLB, glTF, FBX or OBJ with no skeleton, placed in a 3D room) the same skeleton as Room 3D's premade characters: 22 bones, and with fingers 52 (46 with three-fingered hands). Then every animation in the Animation Library fits it, and it bakes for the game like any rigged model. Room 3D's Rig Character, in Studio. Studio Pro: on a free account the window opens to look; saving or making shows the Studio Pro box.

  1. Select the model in the 3D room and choose Rig Character…. (Import Model… reads FBX files too.)
  2. The window shows the model from the front and from the side, with markers on its joints: chin, shoulders, elbows, wrists, groin, knees and ankles, guessed from the model's shape, so most models only need small changes.
  3. Drag any marker that's off onto its joint in the front view: the skeleton follows as you drag, and the marker goes to the middle of the body's depth there. In the side view, drag a marker to set how deep the joint is. Click a marker to pick it, then nudge it with the arrow keys (Shift for bigger steps). The mouse wheel (or a pinch) zooms a view in and out where the pointer is; drag the background to slide it; double-click to frame the model again.
  4. Symmetry (on to start with) moves the other side's marker to match. Guess Markers Again (⇧⌘G) puts every marker back where the shape puts it.
  5. Press Rig (↩). A bar shows the progress; Cancel (Esc) stops it. It takes a second or two (a few for High quality on big models).

When it ends, a message says how it went:

  • Rigging finished: the model, its bones and fingers ("5 fingers on each hand", or "No fingers: one bone per hand"), the digits and where they came from, its vertices and the time taken. Done (↩) closes the Rig window and opens the Animation Library, to try animations on the character; Add Basic Movement gives it Idle, Walk, Run, Jump, Fall, Land, Hurt and Die from the Starter animations, with their roles in the thing's code (anim_idle = "Idle"…), one undo step; Rig Again goes back to the markers (Rig then replaces this rigged model).
  • Rigging failed: why, and what to try (for example: check the shoulder and wrist markers). Back to markers or Close.
  • Rigging cancelled: nothing in the room changed.

The rigged model takes the still model's place in the room (Edit > Undo puts the still model back, one step) and is kept inside the project as datafiles/room3d/<model>_rigged, listed in the included files: model.json, its vertex buffers and its standing pose, in Room 3D's saved format, so Room 3D and the game read it as they read a premade character. It stands on its origin: its feet on the floor at the thing's place, its hips above it, whatever the still model's origin was. model.json also keeps how it was rigged, so choosing Rig Character… again on the rigged character opens the still model with the markers, hands and digits it was rigged with, and Rig replaces it.

After rigging, Show weights colours the model by how much one bone moves each part (red: all of it, blue: none). Pick the bone under it.

Quality: Draft is quickest; Normal suits most models; High looks more closely, which helps when parts that touch shouldn't move together (fingers against a hip, hair against a shoulder, a horn near a hand).

Turn (the 90° buttons) turns the model a quarter turn at a time when a note says it faces sideways or away. Notes also say when the arms don't seem to be held out (T-pose or A-pose), reach forward, or the legs couldn't be told apart at the top (a skirt, a robe).

How the weights are worked out: the model is filled with cubes (holes and open clothes are fine), the distance from each bone is measured through the body, not in straight lines (so an arm hanging by the hip isn't pulled by the hip's bones), each bone's thickness taken into account, then smoothed over the mesh; at most 4 bones a vertex, summing to 1, as GameMaker's vertex format holds. Separate pieces (clothing, hair, a hat, a backpack, a held prop) move with the part of the body nearest them.

Tips:

  • A T-pose works best; an A-pose works well too. With the arms down by the sides, check each arm marker.
  • An elbow or knee bends in the wrong place: move its marker to the middle of the joint and rig again, or raise the Quality.
  • Part of the body follows the wrong bone: rig again at High quality.
  • The wrists go where the hand meets the forearm, not in the palm.
  • Chibis (a big head, short legs, big hands): the arms are found where they stick out at the sides, the legs where they part, the wrist where the hand comes out of the sleeve or cuff.
  • The chin goes where the head starts: just over the neck, or, for a head with no neck to see (a helmet, a hood), where the body below gets wider than the head.
  • Rigging a model that already has a skeleton replaces it with the standard one (its own animations aren't kept).

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.