Descending into the cave…
💎 Crystal cave
Click a crystal to make it flash.
The science

Crystal habit. Real crystals obey Steno's law: the angles between corresponding faces are the same in every specimen of a mineral, however long or fat it grew. The crystals here are modelled as quartz: a hexagonal prism (faces meet at 120°) with a six-sided pyramidal termination whose faces rise 51.8° from the basal plane (the prism/rhombohedron angle of quartz is 38.2°). Only the length-to-width ratio varies (four Blender-modelled variants), and every instance is scaled uniformly so the angles never change; the independent checks below measure them from the loaded mesh.

Why tips glint. Quartz has refractive index n ≈ 1.544, so light inside meets the surrounding air with total internal reflection beyond the critical angle θc = asin(1/n) ≈ 40.4°. A ray travelling along the crystal axis hits the termination face at 51.8° to its normal, above θc, so it is trapped and bounced sideways — the reason a clear crystal point looks bright.

Honest simplifications. Real cave quartz and gypsum do not glow; the coloured emission, the sweeping coloured lights and the dripping water are artistic. Crystals are placed by a seeded random layout, not by a growth model, and the cave is a decorative hull (no real geology of dissolution or deposition). The flash on click is a visual effect. Everything was modelled and textured in Blender; the lighting and animation run live.

Independent checks (run on load):

running…
Drag to orbit · wheel to zoom · click a crystal
Made with 🟠 Blender · Three.js