World

A scene without mistakes

Chairs with their backs to the table, an umbrella through a table top, an object in a wall: what the studio finds in a scene and how it fixes it.

The studio checks the scene after every change. What it finds shows in Selection next to the object (with Fix when there is a fix) and in Problems. Clicking a problem selects the object in the Scene.

What it finds

From the objects and the sizes of the models alone:

  • an object inside another (a chair in a table, a pot in a tent leg);
  • a seat with its back to the table, too far from it or at the wrong height (a bar stool at a low table);
  • an umbrella through a table top without a hole;
  • the same model twice in one place;
  • furniture that is not frozen and will fall over when a player bumps it;
  • an NPC with no scenario or animation, standing stiff;
  • an NPC inside another object (a barista in the counter).

With Player 1 in the game, also:

  • an object or an NPC floating above the ground or sunk into it;
  • an object inside the map (a wall, a bench, a building);
  • a flat object lying level with the ground, which will flicker;
  • an NPC whose animation dictionary the game does not have, who does not play its clip, or who does not perform its scenario (a wrong name);
  • an object in another routing bucket than Player 1, so the player does not see it;
  • an object in an interior the game has switched off.

The height when placing comes from the game at that moment. When the game has not loaded the collision of the spot yet (a raised area, steps), the object can end up too low. The check shows it, and Fix puts it on the ground.

Model data

The size of each model, also one streamed by the project’s resources, is measured in Player 1’s game the first time it is used and kept in the project’s scenes/models.json. For seats the studio also measures the seat height and the front (the side without the backrest).

Set another model’s front in Selection: stand with Player 1 where the object’s front should point (in front of a chair, say) and click Front towards Player 1. A seat whose front is unknown is listed in Problems, and its direction to the table is not checked.

Placing relative to other objects

Claude places objects by relations instead of guessing numbers, and the studio works out positions and angles from the sizes:

  • on the ground or on top of another object (a coffee machine on a counter);
  • facing an object or a point;
  • beside an object, on a chosen side;
  • several around an object, each facing it (chairs around a table);
  • several along a line.

Claude finishes a scene only when the check finds nothing, and looks at it in game screenshots.

Mechanics

  • NPC plays an animation: an NPC of the scene does something for a set time (a barista at the machine while the player waits on the progress bar). Everyone sees it, and the NPC then goes back to what it did before.
  • The player turns to the object before an animation, a progress bar or picking something up.
  • Pick up and hold with Only for the duration of the mechanic: the object goes when the mechanic ends, is cut short or the player dies (the cup does not stay on the ground after the coffee).
  • In-game text language in the project settings: Claude writes mechanic texts in it, and saving a mechanic with a text in another language gives a warning in Output.

Claude

scene_add with placement, scene_check (with fix: true it applies the fixes), model_front, player_position, player_teleport.

A question this page does not answer? Ask it on Discord.

Webexe Studio

Click to see it at 100%.