Command Palette

Search for a command to run...

Hectal
Phase 17: Performance
3D Web · Exercise 1 of 4Next
Advanced

Instance the bollards

The code makes 200 bollards as 200 meshes: about 200 draw calls. Draw them as one InstancedMesh of 200 instances, in the same places.

Keep the scene within 3 draw calls.

What Check tests

  1. There is an InstancedMesh with 200 instances
  2. No plain Mesh is left except instanced ones
  3. At most 3 draw calls
  4. Instances keep their places: the last one is at x = 4.5, z = -4.5

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.