Theme Catppuccin
Make yourself at homeCatppuccin

A softer light for long learning sessions.

Appearance

Loading your preference…

Dark palette

Choose a dark palette to try it.

Light uses Latte. Your choices stay in this browser.

Metal and glass

SKETCHBOOK / 04 The Lantern Room · 2-week chapter

Page 1 of 3: Start with a smooth mirror

Specular / delta events

Start with a smooth mirror

A smooth mirror sends a chosen incident direction to a specific reflected direction. That is a delta event, not a broad directional density that can be evaluated like the diffuse PDF. Give scattering results an explicit event kind so the integrator can make the distinction.

Begin with a bounded RGB-tinted ideal mirror and label it as a teaching model. A conductor model uses angle- and wavelength-dependent optical properties; a colored perfect mirror is not a measured rough-metal material. Add rough microfacet scattering only after you can account for the distribution and its PDF.

Test a perpendicular incident direction and one oblique reflection against an independently drawn normal. Preserve a fixed path limit and a ray-origin policy. The companion supplies geometry queries and the bounded diffuse/emission model. Extend that working baseline with an explicit mirror event; the specular material and its tests are your implementation.

TRY IT IN YOUR STUDIO

Create one original mirror object in the room, then record the event kinds and termination reasons for a ray that reflects twice.

From the page to your own work

Your studio assignment.

Make one mirror and one bounded smooth-glass experiment in your own renderer.

A finish line you can see

A material triptych, reflection/refraction tests, and a statement of supported media.

  1. Label the mirror and glass approximations.
  2. Test entering, exiting, and total internal reflection.
  3. Keep an explicit maximum path depth.
  4. Do not claim roughness, absorption, or nested-media support you did not implement.
Keep the evidence in your weekly notebook ↗
Explain it like an engineer

Try answering aloud before opening the review notes. Use your own implementation as evidence.

Why is a mirror event not interchangeable with the diffuse PDF?
  • A delta event is concentrated on a prescribed direction.
  • Ordinary density evaluation and discrete branch probability are different.
  • The integrator needs event information for later light sampling.

These prompts support practice; they are not an automatic assessment of your work.

A small creative variation ↗

Restrict the scene to one refractive interface and explain its normal and eta choices.

Optional. Save it for later if this chapter already feels full.

Coming back after a break? ↩

Run only the reflection-direction test, then add one normal-incidence dielectric case.

Books & principles behind this study +

Original Parallax explanations and assignments, with these works for further reading.

YOUR MARGIN NOTES

Leave yourself a good question.

What changed your mind? What would you try next?

Notes are private to this browser and saved as you write.

A CHECKPOINT, NOT A SCORE

Can you explain the idea and try the exercise yourself?

Completion records your own assessment. It does not compile or test your C++.
Companion source 10 files