The projection in one equation
The renderer computes distance = cameraDistance − point z and focal = min(viewport width, viewport height) × 1.4 × zoom. Screen x is the center x plus point x × focal / distance; screen y subtracts the analogous y term. A nearer point therefore projects farther from the center.
Lighting and visibility
A cross product supplies a face normal. The renderer compares that normal with the direction toward the camera, sorts surviving polygons by their center z, and uses a light-direction dot product for diffuse brightness. A small view-facing shine term adds a highlight. BalloonCanvas fills the projected polygons into a 32-bit Form.
What this renderer teaches
This is the project’s own software 3D renderer. It uses painter-style polygon ordering, not a depth buffer. Intersecting faces or some overlapping geometry may sort incorrectly. Faces that cross the near-distance guard are discarded as a whole rather than clipped. Wireframe includes back faces. These choices keep the code readable and work well for the supplied teaching meshes.
The live timer measures elapsed time and caps a single update at 0.1 seconds. The GIF recordings instead call advanceSeconds: with a fixed 1/24-second interval. Their slower playback is documented next to each recording.