3D Worlds
What a 3D world is
A 3D world is not a different kind of game — it is a way of drawing a top-down scene: the camera rises, objects have models and height, and you walk in as if standing on a small patch of ground. Movement, pickups, gates, dialogue, combat and saves still work like any top-down world.
One world can mix ordinary top-down scenes, side-view platform scenes and 3D scenes. Only 3D scenes are drawn in 3D; the others stay exactly as they were.
Create a 3D scene
Right-click the world canvas and choose “+ New top-down scene (3D)”. The scene starts at 20×20 tiles with the spawn point in the middle; rename it, make it the main scene and start placing objects right away.
With a 3D scene selected, the toolbar shows “2D edit / 3D preview”. It opens in 3D preview by default: drag to orbit, scroll to zoom; click “2D edit” to return to the familiar top-down grid.
You can edit right inside the 3D preview: drag objects from the library onto the ground, click an empty tile to place, click to select, press and drag to move. Placement and dragging land back on the 2D grid, so collision, conditions and saves never change just because the view did.
Sky and panorama
Every 3D scene has a sky dome (built-in variable `_sky`). By default it is a three-colour gradient from top to bottom; under “Sky” in the scene inspector you can change the top, horizon and bottom colours. Changes apply immediately and blend smoothly when switched.
For a more realistic sky, pick an image material for the dome: it wraps the scene from every direction like a 360° panorama photo. A standard equirectangular panorama is 2:1 (twice as wide as it is tall), with the horizon in the middle and left and right edges joining seamlessly.
Once an image is picked, a “panorama yaw” slider appears in the inspector. At 0° the centre of the panorama faces north — straight ahead in the default view — and dragging turns the view you want to the front. It only rotates the sky itself: no texture rebuild, no flicker. The seam starts behind you, out of sight.
There are two ways to get a panorama: upload your own 2:1 image with “Materials → New → slice”, or use “New → ✨ AI image → Sky panorama” to generate one from a description. Choose “None (gradient)” to return to the three-colour sky.
Get a model ready
Open “Materials → New → 🧊 New 3D model” and pick a .glb file. Keep each model under 800KB with its textures embedded; the editor creates a thumbnail and measures it automatically.
Any world can use “New → ✨ AI model”: describe what you want and let the Dream Weaver generate a model, then accept it into Materials.
On import a model is scaled so its longest horizontal side is one tile, centred horizontally and resting on the ground. Its footprint and height then decide how big it really is in the world.
Put a model on an object
Create or edit an object in the library. Its dialog has two tabs on the left: “3D” and “2D”. Open “3D”, pick the model you just uploaded, and a 3D preview appears below.
The “2D” tab still holds a sprite: it is used in ordinary top-down scenes, older versions, or if the model fails to load. Both tabs keep their data; switching only changes what you see.
| Setting | What it does |
|---|---|
| 3D model | Which model this object shows; empty = no model |
| 2D sprite | The look used in flat scenes and as a fallback |
| Height | The third dimension L (tiles); how tall the collision volume is |
| 3D stretch | On = fill M×N×L; off = keep the model’s original size |
| Collision | None / Model / M×N×L |
Footprint, height and collision
M×N on the size button is the footprint in tiles; the “Height” field after it is the third dimension, L. For example 2×2 with height 3 is a volume two tiles square and three tiles tall.
With “3D stretch” on, the model is stretched to fill M×L×N; with it off the model keeps its original size, but L still sets the collision height. The 2D sprite has its own stretch switch, and the two never affect each other.
There are three collision choices: None = pure decoration you can walk through; Model = block by the scaled model’s bounding box; M×N×L = block by the volume you declared, which may be larger than the model and is useful for invisible walls.
Whichever you pick, the horizontal footprint is written into the 2D blocking tiles automatically — ordinary top-down scenes, older versions and flat gameplay all see the same blocking.
Test-run and multiplayer
Hit test-run and the 3D scene opens in 3D. Move with WASD or the joystick relative to the screen, jump with Space, interact with E; drag to orbit the camera and scroll to zoom.
Objects with height can be jumped onto: land on a crate top, walk across it, and fall off the edge; tall volumes block the way while low ones can be jumped over.
Once your feet rise far enough above the ground, ground pickups, trigger areas and E interactions are skipped for the moment — jump over ground coins or a trigger zone, and they are checked again when you land.
In a multiplayer world, jumping and height are computed by the world itself: when you jump onto a crate or drop off an edge, everyone sees the same position.
Swap models by state
An object’s state row has two choices: a 2D sprite and a 3D model. When the condition matches, a 3D scene swaps to that model and a 2D scene swaps to that sprite.
If a state has a sprite but no model, a 3D scene keeps its current model instead of suddenly going flat; if it has a model but no sprite, a 2D scene keeps the base sprite.
Playing model animations
If a model comes with animations, the editor reads the list on upload. In the object dialog’s “3D” tab, find “Base animation”: pick one clip or “All animations” to decide how the model moves by default.
State animations are driven by platform variables: give the state a condition (say “door_open equals 1”) and pick an animation. It plays while the condition holds; when it stops holding, the model returns to its base animation or rest pose.
| Option | What it does |
|---|---|
| No animation | Keep the model’s first frame / rest pose |
| All animations | Play every clip at once (multi-part doors: leaf, handle, bolt) |
| One clip | Play only the selected clip |
| Loop | On = repeat; off = play once and hold the last frame |
Making a 3D door
Here is the whole flow using a door. Bring your own model, or generate one directly with “✨ AI model”.
- Prepare a door .glb yourself, or generate one with “✨ AI model”.
- Open Materials → New → 🧊 New 3D model and pick the file; confirm to get a model material.
- Create an object in the library (prop or gate) and pick the model on its “3D” tab.
- Create a 3D scene, drag the object in, and adjust footprint, height and collision as needed.
- To make it move: add a state with condition “door_open = 1” and choose “All animations”; set door_open to 1 in a compute.
- Hit test-run: walk up to the door, jump onto a nearby crate, and try walking off the edge.
To make the door actually open, set the object type to “Gate” and give it a target scene and opening conditions — the model is only its look; the gate object still does the opening. For decoration only, use the “Prop” type.
