npmstart.
Exercises
中文

Build a minimal scene in the Three.js Editor

Use a box to explore objects, transforms, materials and viewpoints, with a reusable checklist.

Three.js EditorReviewed 2026-11-10Original example exercise

What you will make

A named basic scene you can reload, plus a record of your experiments.

Before you begin
A WebGL-capable browser. Try the official demo first; local source is a large download.

Menu names can change. The upstream demo is externally operated and may differ from the pinned local version.

Add one object to an empty scene

Open the official editor and add a Box through the Add menu. Confirm both the object-list entry and the visible box. Avoid large model imports and multiple lights for the first exercise. Rename the object First box so you can identify it later instead of guessing which generic entry belongs to the experiment.

Change one transform at a time

Inspect Position, Rotation and Scale for the selected box. Move along one axis, restore the value, then try rotation and scale separately. Record the effect of each change. Orbiting the view is different from moving the object: changing your observation angle should not change the object’s position values. Keeping initial values makes experiments easier to reverse.

Separate geometry from surface appearance

Geometry describes the shape; a material describes how its surface appears. Change a color and observe that the underlying outline stays the same. Some materials depend on lighting, so inspect material type and the scene environment if the object looks dark. Editor grids, helpers and the inspection camera are not automatically part of every final exported experience.

Inspect the scene from two viewpoints

Inspect the box from the front and side to check for accidental flattening, distance or occlusion. Add a second object only after the first is understood, then compare their positions. A small, clearly named object list makes it easier to distinguish a viewpoint problem from a scene-content problem than a complex imported model does.

Save and record how to reproduce it

Use the editor’s save or export action to retain an editable project and reload it through the matching import workflow. Names and formats vary by version; distinguish an editable project from an image. Record object names, transforms, materials and reload results in the sample checklist. Seeing a scene in an editor does not mean you have published a standalone site or optimized it for phones.

Check your result

  • You can distinguish orbiting the view from moving an object.
  • Object names and transform values are recorded.
  • The saved project can be reloaded.

An object is selected but not visible?

Check for extreme position or scale values, restore the recorded starting values, then adjust the view. Also check WebGL support.

Sources and further reading

This exercise is original. Consult these primary sources for project behavior and syntax.