Skip to content

2.5D ​

The 2.5D plugin gives you 3D characters over backgrounds that are still images, like Grim Fandango, Syberia or Broken Sword 3: the scene is drawn with your usual background (pre-rendered in Blender, painted, a photo…) and the character is a rigged, animated model that turns toward where it walks. This kind of game is usually called 2.5D: neither fully 2D nor fully 3D (a plugin for fully 3D scenes would be something else).

Not everyone needs it, so it is off by default: each project installs it separately. A game that does not use it loads nothing 3D and the editor looks the same as ever.

Everything else stays the same

A 3D character moves along the walkable area, scales with perspective (scale lines), passes behind objects and masks, talks with speech bubbles, has hotspots, picks things up and appears in cinematics just like any other character. The usual blocks ("Walk to", "Animate", "Look toward"…) work unchanged: the plugin adds no blocks.

Turning it on ​

  1. Open Plugins (side menu, Project group) and pick 2.5D.
  2. Flip the On switch.
  3. In Characters, the type window offers 3D model and, in each scene's inspector, the 3D camera section.

2.5D plugin settings: resolution quality, concurrent character limits, and default camera and lighting

On the plugin page you set:

  • Quality: Low, Medium or High. How many pixels each 3D character is drawn with. The resolution adapts itself to the character's size in the game (a 1920×1080 game with the character at 380 px uses a bigger canvas than a 960×540 one), and quality lowers it (Low, ×0.6; low also skips edge smoothing) or raises it (High, ×1.5). More quality = sharper, but more work for the player's device.
  • 3D characters at once: how many are drawn at the chosen quality; the rest use the low one.
  • Default camera and light, for scenes that do not have their own (see below).

A 3D character ​

With the 3D model type, Animations is its studio: on the left the clips grouped by file (the model and each library), with each one's duration and the state that uses it; in the center the rotatable preview (you can also drop a .glb onto it to import it); below, the animation map (state → clip, with its duration; with + you create your own states), and on the right Model (the file, changing it, the libraries and blending) and State. Size, shadow, light and the Cartoon style are in Body; base rotation, directions and turn speed in Movement (see Characters).

  1. In Characters, pick the character and, with the type button, 3D model → Edit “3D model”.
  2. Import GLB and choose your .glb (binary glTF) file, or, to try it without a file of your own, one of the sample models the empty card offers (Lowpoly Toon, Mini Simple and Square Head; joaobaltieri, CC BY 4.0). The model is added to the assets (modelos3d folder) and shown in the preview: drag to rotate (and tilt), the wheel zooms, the right button pans and double click resets the view. You can also pause it or turn it with the slider.
  3. Press Use this model in the game. From then on the character is drawn with the model instead of sprites.

Interactive 3D model studio with rotatable viewport, animation clip mapping, and scale and orientation settings

Animations ​

In the map below you pick a state and assign it a clip: dragging it from the list, double-clicking the clip or, in the State inspector, searching among the GLB clips (even if there are hundreds). The states are: idle, walk, talk and interact. On import the editor assigns by name (idle, walk, talk…); you can change it by hand. Any other clip can be used by name with the Animate block, without assigning it.

  • If the model has no idle clip of its own (for example, it only ships a walk), the standing character holds still in the pose of the animation where the legs are closest together, instead of walking on the spot.
  • Running: on double click (or press and hold) and with the Run to block, the character goes faster and plays its run clip (run). It is assigned automatically if the clip is called Run, Jog, Sprint… and, if there is none, it just walks faster with the walk clip.
  • The model does not move with the animation (the engine moves it along the path): use in-place animations.
  • Changing animation does a crossfade (the Blend between animations setting).
  • Animation libraries: a model without animations (like the base characters of the Starter pack) uses those of another .glb made for the same skeleton. They are added in the model's Animation libraries group (or, with a base character, with one click on Use its animations) and their clips show up in the list like its own.
  • Talking: while the character speaks its talk clip plays. Lip sync with morph targets is not included yet.

Model settings ​

SettingWhat it does
Size (height in scene, px)The character's height at scale 1. The scene's perspective then changes it, as with any character. Below it you see how tall it is in metres in a 3D scene and how tall its model is; if they do not match, Use the model height evens them out. Importing the .glb into a character with no drawings already takes its model height.
Scale adjustmentA fine multiplier on top of the size.
Faces the player: default turn (°)If the model looks sideways or away in the preview, rotate it here until it faces the player.
DirectionsAll (default): the model turns toward where it walks at any angle, not only in 8 directions. 8 or 4: it only looks and moves in those directions (like a sprite). The sprites' “Directions” setting is not used with 3D models.
Turn speed (°/s)How fast it turns when direction changes. 0 = instant.
Blend between animations (s)Length of the crossfade between clips.
Shadow blob under the feetA soft shadow on the ground.

The model is normalized: it is placed with its feet on the ground and scaled to the given size, whatever unit you exported in. Where it faces is decided by movement: the character turns toward where it walks and "Look toward" blocks become an angle.

Scene camera and light ​

Each scene has its own camera: one can be seen from the side, another at 45°, another from the ceiling and another from far away. A pre-rendered background was seen from a particular camera; for the character to "fit", it must be seen from a similar angle. In the scene inspector, the 3D camera section has:

  • Tilt (°): 0 = at the character's height; 45 = from above; 90 = top-down view, from the ceiling (only the head and shoulders show).
  • Field of view (°): low = almost no perspective (telephoto, "from far away"); high = more distortion.
  • Camera turn (°): rotates the viewpoint around the character.
  • Character size (×): multiplies its size in this scene. You need it when the scene has no scale lines (for example a view from the ceiling or a single-plane scene).
  • Light: direction and height, color, intensity and ambient light, so the character receives the background's light.
  • Estimate from the scale lines: if the scene has two or more scale lines (character bigger lower down), the button takes the horizon from them and works out the tilt with the camera's current field of view. The field of view cannot be deduced from the scale: set it first if you know it and estimate again. It is a starting point; fine-tune it with the real-size doll.
  • Import from Blender: type the focal length, sensor and X rotation of the camera you rendered the background with and Apply to the camera works out the tilt and field of view (X rotation 90° = looks at the horizon; 0° = looks down).
  • Use the plugin defaults: removes the scene's own values. Scenes with no camera of their own use the one on the plugin page.

Turn on Real-size doll in the scene's View menu: the 3D character is drawn at the scale points with the current camera and light, so you can see by eye whether it fits the background.

Scene editor showing 3D character in the environment with the 3D camera inspector section unfolded

"Simple" camera

The character's on-screen position and size are still given by the walkable area and the scale lines (or the Size field when there are none). The 3D camera only decides from which angle the model is seen. When the tilt goes beyond about 55°, the ground point the character stands on moves from its feet to the center of the drawing, and the shadow becomes a circle.

Stairs, railings, level changes

Only the character is 3D; the set is still an image. To hide it behind a staircase, a railing or a piece of furniture use the usual layers and masks (and each object's baseline).

Which models work ​

  • GLB format (binary glTF 2.0) with a skeleton and animations. If you have FBX, OBJ… convert them to GLB (for example in Blender: File › Export › glTF 2.0).
  • Standard PBR textures and materials. Meshopt compression is supported; Draco and KTX2 are not included for now (export without them; in Blender, untick Compression when exporting).
  • Keep models light: a few thousand triangles and 1024 px textures are plenty for a character that is drawn small. The project diagnostics warn if a 3D character has no model, if the plugin is off, or if the model has no animations.
  • Models and animations are yours: make sure their license lets you use them in your game. The plugin ships no models: only the tutorial's own, which come with their own license.

The A 3D character with several cameras tutorial (Tutorials › 2.5D) builds four scenes with different cameras (side, 45°, top-down and far away, joined by doors) with a two-button interface and three 3D characters (the protagonist and two characters who talk). The models are by joaobaltieri on Sketchfab, under the CC BY 4.0 license: Lowpoly Toon Characters, Mini Simple Character and Square Head Character (the free versions with animations). The tutorial carries the credit in the game's Credits / About; if you use those models in yours, credit them too.

If a clip carries the character movement (the hips travel, as in Mixamo animations without In Place), mark it in Animations that move the character: the character moves with it and the model no longer leaves its canvas. Unmarked, that travel is seen inside the canvas and the character returns to its spot at the end. See Root motion.

Performance ​

  • The 3D library (three.js, MIT license) is loaded only if the game has 3D characters.
  • A single shared WebGL context is used; each character is drawn on a small canvas that is redrawn only when its pose or direction changes.
  • If the browser loses the WebGL context (low memory, GPU switch…), characters redraw themselves when it comes back.
  • If the computer cannot open WebGL (no graphics acceleration, a virtual machine, a browser that won't give more contexts), the game goes on: it tells the player once with a clear message and draws those characters with whatever 2D they have (their frames, or the silhouette if none). If you want them to look right there too, give them fallback 2D animations.
  • For phones, use Low or Medium quality and reduce 3D characters at once.

With the AI agent ​

The AI agent can set up characters and cameras with the set_character_model3d tool (assigns an imported GLB to a character, maps clips by name and adjusts size, facing and shadow) and set_scene_camera3d (tilt, field of view, turn and light of a scene). It also changes the settings of the plugin page with set_plugin and settings: the quality, the 3D characters at once and the default camera and light of the scenes that do not have their own (camera: null and light: null go back to the original values). It reads them with list_plugins.

Limits ​

  • Only scenes with a 2D background: there are no fully 3D scenes, mesh editor, physics or skeleton editing.
  • There is no per-pixel occlusion against the background: characters pass behind objects with the usual layer and mask system.
  • Draco, KTX2 and morph-target lip sync are left for later.