Text-to-3D Animation for Indie Games (With Three.js Code)

By Arron R.10 min read
Text to 3D animation turns a written motion description into bone animation on a rigged 3D character. For games, you want a rigged model with clips exported as

Text to 3D animation means typing a description of a movement, like “a stocky dwarf swings a pickaxe overhead and steps forward”, and getting back motion that plays on a 3D character. For game developers the useful result isn’t a pretty video. You want a rigged character with animation clips that load into an engine and that you can trigger from code. This guide covers how the technology works, where it falls short, how to write motion prompts that give usable clips, and how to get the result running in a real game.

What is text to 3D animation?

The phrase gets used for three different things, so it’s worth separating them before you pick a tool:

  • Motion on a rigged character. A model reads your prompt and outputs bone movement for a 3D character. A rig is the invisible skeleton inside a mesh: each bone pulls the nearby vertices (the points that make up the surface) along with it. An animation is just those bones rotating over time, stored as keyframes (poses at specific moments) that the engine blends between. This is what games need.
  • Text-to-video. A text-to-video model generates a clip of pixels. It can look 3D, but there’s no skeleton, no mesh and no way to turn the camera or react to player input.
  • 3D text titles. Animating extruded letters for intros and logos. This is motion graphics and has nothing to do with characters.

Classic 3D production splits into three phases: modeling (building the shape), layout and animation (placing and moving things), and rendering (turning the scene into images), as described in the overview of 3D computer graphics. In the game sense, text to 3D animation automates the animation phase. The more complete tools automate modeling and rigging too, so a single prompt can take you from an idea to a moving character.

How does text to 3D animation work?

Under the hood, every text-to-motion tool runs roughly the same chain, whether you can see the steps or not:

  1. Character mesh. You need a 3D model. It can come from a modeling program, a scan, or an image-to-3D generator.
  2. Rig and skinning. A skeleton gets placed inside the mesh, then each vertex is assigned weights that say how strongly each bone moves it. Adjusting those weights is called weight painting. Bad weights cause the classic problems: elbows that collapse, or shoulders that drag the neck along.
  3. Motion generation. A motion model reads your prompt and outputs bone rotations for every frame. These models learn from large libraries of recorded human movement, which is why they handle walks, punches and dances well and struggle with motions nobody records.
  4. Retargeting. The generated motion gets mapped onto your character’s skeleton so a short goblin and a tall knight can share the same clip without their limbs stretching.
  5. Export. The mesh, skeleton and clips are saved in a format your engine reads.

The common formats are worth knowing. GLB is the binary form of GLTF, an open format that packs mesh, textures, skeleton and animations into one file. It’s the default for web engines like Three.js and imports cleanly into Godot. FBX is the long-standing interchange format in Unity and Unreal pipelines. BVH stores only skeleton motion with no mesh, so it’s mostly used to move animation between tools.

Since the motion data comes from human movement, almost every text to 3D animation tool assumes a humanoid skeleton: two arms, two legs, a spine and a head. If your character is a spider or a four-legged beast, that assumption breaks, and you need a different approach (covered below).

Pipeline diagram showing mesh, rig, motion generation, retargeting and export stages
Every text-to-motion tool follows the same basic chain: mesh, rig, generated motion, retarget, export.

Text to 3D animation vs text-to-video vs 3D text animation

The three get mixed up all the time. Here’s how they compare for someone building a game:

Text to 3D animationText-to-video3D text animation
OutputRigged mesh plus bone motion clipsA flat video fileAnimated letter geometry, usually rendered to video
Plays in a game engine?Yes, as real-time animationOnly as a video texture or cutsceneOnly as a rendered clip or a static mesh
Change the camera angle later?YesNoYes, before rendering
Responds to player input?Yes, clips can blend and switchNoNo
Best forPlayer characters, NPCs, enemiesTrailers, story cutscenesTitle cards, logo intros

If you’re after a cinematic video instead of a playable character, Sorceress has AI Video Gen, which brings several text-to-video and image-to-video models into one panel. It’s the right tool for a trailer shot. It won’t give you a rig.

How to make 3D text animation in Blender or After Effects

If you came here for animated 3D lettering, Blender is free and open source and handles it well. Add a Text object, set an extrude depth in the object’s geometry settings so the letters gain thickness, then press I over a property to insert keyframes for location, rotation or scale. Move a few frames along the timeline, change the value, and key it again. In After Effects, the workflow is turning a text layer 3D and animating its transform and a camera. Both tools render to video. Neither is character animation, so the rest of this guide sticks with characters.

How to do text to 3D animation in 3D Studio

The hard part of text to 3D animation for most indie developers isn’t the motion. It’s everything before it: you need a model, the model needs a clean rig, and the rig needs decent weights before any generated motion looks right. 3D Studio exists to close that gap. It takes one typed idea through the whole chain and gives you a fully rigged, fully animated, game-ready 3D character.

The pipeline has four stages:

  1. Generate. AI image generation turns your prompt into a concept character. This is where you pin down the look: silhouette, outfit, colour palette, props. Take your time here, because everything later inherits it.
  2. Lift to 3D. A one-click image-to-3D step converts the concept into a fully textured 3D model. If you want the background on how image-to-3D works and where it struggles, see how to make a 3D model from a 2D image.
  3. Auto-rig and weight paint. A humanoid skeleton gets attached automatically and the weights get refined, which is the step that decides whether joints bend cleanly or crumple.
  4. Text-to-animation and export. Describe the motion in words, then export the character to FBX, GLB or GLTF for whatever engine you use.

Since every stage lives in the same tool, you don’t have to export a mesh from one service, rig it in another and retarget motion in a third, which is where most of the friction in a DIY pipeline lives. The 3D Studio overview lays out the full pipeline on one page.

Two related tools cover what a humanoid pipeline can’t. For creatures with more or fewer than two legs, such as spiders, ants, drakes and four-legged beasts, Procedural Walk handles 3D procedural rigging and animation. If your game is 2D but you like the look of 3D characters, 3D to 2D renders any 3D character or animation into a pixel-perfect 2D sprite sheet from any camera angle. A sprite sheet is a single image that holds every frame of an animation in a grid.

Writing motion prompts that produce usable clips

Motion prompts behave differently from image prompts. You aren’t describing how something looks. You’re describing what a body does over a second or two. A worked example makes the difference clear.

Say the character is “a stocky dwarf miner with a braided beard, leather apron and a brass lantern on his belt.” A small action game needs five clips. These are the prompts I’d write:

  • Idle: “stands in place, breathing slowly, shifts weight from one foot to the other, looping.”
  • Walk: “walks forward at a steady, heavy pace, arms swinging, in place, looping.”
  • Mine: “raises a two-handed pickaxe overhead and swings it down in front, then returns to a ready stance.”
  • Hit: “recoils backward from a blow to the chest, then recovers to standing.”
  • Death: “staggers, drops to the knees, and falls forward onto the ground.”

The patterns behind those prompts:

  • One action per clip. “Walks over, picks up a rock and throws it” is three clips. Game code switches between short clips, so generate them separately and let the engine chain them.
  • Say whether it loops. Idles, walks and runs need to start and end on the same pose. Attacks and deaths are one-shots.
  • Ask for in-place locomotion. In most games the code moves the character and the animation only moves the limbs. If the clip walks the character forward on its own (called root motion), the character will snap back to the start every time the loop restarts, unless your engine is set up for root motion.
  • Describe tempo and weight. “Heavy”, “quick”, “sluggish” and “bouncy” change the result more than extra adjectives about the character.
  • Return to neutral. One-shots that end close to the idle pose blend back smoothly. Ones that end in an odd pose give a visible pop.

For more on writing the character half of the prompt, the guide on generating characters from text goes deeper.

Five animation clips for one dwarf character: idle, walk, mine, hit and death
One character, five focused prompts: loops for locomotion, one-shots for actions.

Playing the animation in Three.js or Godot

Once you’ve exported a GLB, the game engine does the rest. Here’s a complete Three.js example that loads the dwarf, plays the idle, crossfades to the walk while W is held, and fires the mining swing as a one-shot on Space. Log gltf.animations once to check the exact clip names your export uses.

import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(50, innerWidth / innerHeight, 0.1, 100);
camera.position.set(0, 1.5, 4);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(innerWidth, innerHeight);
document.body.appendChild(renderer.domElement);
scene.add(new THREE.HemisphereLight(0xffffff, 0x444444, 2));

const clock = new THREE.Clock();
const actions = {};
let mixer, current;

new GLTFLoader().load('dwarf.glb', (gltf) => {
  scene.add(gltf.scene);
  mixer = new THREE.AnimationMixer(gltf.scene);
  for (const clip of gltf.animations) {
    actions[clip.name] = mixer.clipAction(clip);
  }
  if (actions.Mine) {
    actions.Mine.setLoop(THREE.LoopOnce);
    actions.Mine.clampWhenFinished = true;
  }
  mixer.addEventListener('finished', () => play('Idle'));
  play('Idle');
});

function play(name) {
  const next = actions[name];
  if (!next || next === current) return;
  next.reset().play();
  if (current) current.crossFadeTo(next, 0.25, false);
  current = next;
}

addEventListener('keydown', (e) => {
  if (e.key === 'w') play('Walk');
  if (e.key === ' ') play('Mine');
});
addEventListener('keyup', (e) => {
  if (e.key === 'w') play('Idle');
});

renderer.setAnimationLoop(() => {
  if (mixer) mixer.update(clock.getDelta());
  renderer.render(scene, camera);
});

In Godot 4, drop the GLB into your project and instance it under a CharacterBody3D. The importer creates an AnimationPlayer holding every clip. Set the loop mode for Idle and Walk in the import settings, then switch clips from script:

extends CharacterBody3D

@onready var anim: AnimationPlayer = $Dwarf/AnimationPlayer

func _physics_process(_delta):
    var input := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")
    var target := "Walk" if input.length() > 0.1 else "Idle"
    if anim.current_animation != target:
        anim.play(target, 0.2)

The second argument to play is a blend time in seconds, which hides the switch between clips. If you’d rather not wire this up yourself, WizardGenie, the AI game engine in Sorceress, can write and iterate on this kind of game code from a description. It runs in the browser and as a Windows desktop app.

Common mistakes and trade-offs

Mistakes that waste the most time

  • Using a video tool when you need a rig. If the output is an MP4 with nothing else, you can’t put it on a controllable character. Check for FBX, GLB or GLTF before you invest time.
  • Cramming several actions into one prompt. Long combined clips are hard to interrupt. Short focused clips plus engine blending feel far more responsive.
  • Forcing non-humanoids onto a humanoid rig. A dragon on a human skeleton walks like a person in a costume. Use a rig built for the body plan.
  • Ignoring root motion. Decide early whether your code or your animation moves the character, and prompt to match.
  • Skipping a scale and facing check. Exported characters sometimes come in at the wrong size or facing away from the camera. Fix it once on the parent node, not on every clip.

Honest trade-offs

Generated motion is a strong first draft, not hand-polished animation. Expect the odd bit of foot sliding, hands that don’t quite grip a prop, or timing that needs a nudge. For a game jam or a prototype, the clips are usually good enough as they come. For a hero character in a commercial release, plan a cleanup pass in Blender: open the exported file, fix the worst frames and re-export. Text to 3D animation also does best with motion that people commonly perform. Stylised cartoon squash-and-stretch or creature-specific attacks are still easier to keyframe by hand.

The bigger trade-off is the pipeline as a whole. Stitching separate services together for image, mesh, rig and motion means four exports, four sets of settings and a lot of chances for the skeleton to break between tools. A chained pipeline cuts most of that out, which is the main argument for doing text to 3D animation in one place.

The workflow at a glance

  1. Decide what you need: a playable character (3D motion), a cinematic (video) or a title card (3D text).
  2. Write a character prompt focused on silhouette, outfit and props.
  3. In 3D Studio, generate the concept, lift it to a textured 3D model and let it auto-rig and weight-paint the humanoid.
  4. Write one motion prompt per clip: loops for idle and walk, one-shots for actions, in-place locomotion, neutral end poses.
  5. Export to GLB for Three.js or Godot, or FBX for Unity and Unreal pipelines.
  6. Load the clips with an animation mixer or AnimationPlayer and crossfade between them.
  7. Clean up hero animations in Blender if needed, then export your game build and host it wherever you like.

For the other parts of your game, like sprites, tilesets, materials, music and sound effects, the Sorceress tools guide covers every tool in the suite.

Frequently Asked Questions

Can AI create 3D animations?

Yes. Motion models can generate bone rotations for a rigged character from a short text description, such as a walk cycle, a sword swing or a jump. The output is animation data, not pixels, so you can load it into a game engine, blend it with other clips and trigger it from code. The quality is best for common humanoid actions and drops off for unusual motions or non-human bodies.

How do you turn text into a 3D model?

Most pipelines go through an image first. A prompt makes a concept image of the character, then an image-to-3D model lifts that picture into a textured mesh. For animation you also need a rig, the internal skeleton, plus skin weights. 3D Studio in Sorceress chains these steps: prompt to concept image, one-click image to textured 3D, then automatic humanoid rigging, ready for text-driven motion.

Can ChatGPT make animations?

A chat model does not output rigged character motion on its own. What it can do is write code that animates things: Three.js tweens, CSS animations, or Python scripts that set keyframes in Blender. That works for simple object movement and camera moves. For natural human motion on a character, a dedicated text-to-motion tool gives far better results than code written by hand or by a chatbot.

How do you animate 3D for free?

Blender is free and open source, and it covers modeling, rigging, keyframe animation and rendering. The cost is time: hand-keyframing a convincing walk cycle takes practice. A common workflow is to generate a base clip with a text to 3D animation tool, then open the exported file in Blender to fix foot sliding, adjust timing or add extra keys before sending it to your engine.

Is text to 3D animation the same as text-to-video?

No. Text-to-video models produce a flat clip of pixels you can watch but cannot pose, re-light or control in a game. Text to 3D animation produces bone motion on a 3D character, so the clip plays from any camera angle, blends with other animations and responds to player input. Use video for trailers and cutscenes, and 3D motion for anything the player controls.

Sources

  1. 3D computer graphics — Wikipedia
  2. Text-to-video model — Wikipedia
  3. Blender (software) — Wikipedia
  4. Game engine — Wikipedia
Written by Arron R.·2,342 words·10 min read

Related posts