Frontory

Open code, practice, and notes →

Download source with English comments · for reading

03 · Geometry·Material·Mesh

Week 1 / original Day 3 · Document provided / runnable example provided · This is a learning sequence, not a fixed daily workload.

Full roadmap · Workspace usage

Goal

Experiment with shape and surface appearance separately.

Prerequisites

01~02, object references, and constructors.

Key concepts and explanations

Geometry holds structures such as vertices, faces, and UVs, while Material defines how the surface appears. Mesh combines the two objects. The same geometry can be used with different materials.

MeshStandardMaterial is affected by lights, whereas MeshBasicMaterial displays color without lighting calculations. Distinguish whether a black appearance should be investigated in geometry or in lights and materials. Modifying or disposing of shared geometry can affect other meshes.

Skills you will develop

Exercises

  1. In a local experiment copied from the 01 source, change only the width of BoxGeometry.
  2. Attach MeshBasicMaterial and MeshStandardMaterial to the same geometry in turn, and compare with and without lights.
  3. Write down ownership for two cubes that share geometry and for cubes that each have their own geometry.

You can edit this unit's runnable code in the workspace. If an empty code record was previously saved, restore the original code. Your notes are preserved.

Variables to observe

geometry size, material type, color, roughness. Keep the camera fixed.

Completion criteria

Self-check questions

  1. Does changing only the material change the vertex count?
  2. Is it safe to dispose of shared geometry when removing one mesh?

Official references

Experiment notes — fill these in yourself

Goal

Key concepts

Changed variables and predictions

Actual results

What I learned

Remaining questions

Previous: Scene·Camera·Renderer · Next: Coordinate systems·Vector3·Matrix4

Linked example

Example source is displayed in the workspace editor and actually runs. Change the variables or exercises in the first comment one at a time and record your predictions and results. Restoring the original code resets only the code and does not erase your notes.

See Runtime environments and limitations.

Linked example and execution scope

Runnable source code · Workspace unit ID: 03-mesh

Edit the linked source code in Monaco to apply it to the sandbox preview after checks. Perform the extension exercises and completion criteria yourself and record the results.

Any previously saved code is preserved. To use the new original source, first back up everything as a full JSON file, then select Restore original code. Your notes are not erased.

Open code, practice, and notes →