PLAIN/TEXT — ISSUE 77/456 COMPUTER SCIENCE · FOUNDATION / COMPUTER GRAPHICS · ~4 MIN READING DATE: 2026-12-17 ARCHIVE: https://plaintext.click/newsletter/ SUBJECT: How a computer decides which surface you see How a computer decides which surface you see ============================================ / START HERE A computer drawing a picture must decide which objects hide other objects. Ray tracing is an image-making method that tests straight mathematical paths through a simulated scene to determine what can be seen and lit. A shiny surface can require further paths because its appearance depends on what it reflects, not just its own colour. / WHY NOW A convincing reflection is a geometry problem before it is a paint problem. The renderer needs to discover what lies along the reflected direction and how that route contributes to a pixel. / THE IDEA A ray is a starting point plus a direction. The program tests where it first intersects scene geometry. At a mirror-like surface, the direction changes according to reflection. More paths may be traced for shadows, refraction and diffuse lighting. A pixel usually represents many possible light paths, not a single perfect line. Sampling estimates their combined contribution. More samples can reduce random variation but cost additional computation, which explains why some images look grainy before a renderer has finished. / THE FORMAL IDEA point(t) = origin + t × direction - point(t) is the location reached; origin is the starting location. Each location has three coordinates, numbers locating it along three perpendicular directions. - direction gives the travel direction. With unit-length direction, t is forward distance in metres here, so t ≥ 0. We use a two-coordinate slice below; intersections decide which surface is reached first. / RUN THE TINY EXAMPLE Change one thing. Predict what happens. Use a flat slice: origin (0,0) metres, direction (1,0), meaning directly rightward. A wall at x = 3 m is reached at t = 3 m, point (3,0) metres. Place a nearer opaque object, one that blocks light, at x = 2 m → first hit t = 2 m. The wall no longer directly determines that ray’s visible surface. Changing the nearer object changes visibility even though the wall’s colour and the camera stayed fixed. Reflection then applies the same intersection logic again along a changed direction from the hit surface. / SO WHAT? This is why scene complexity, lighting and sampling all affect rendering cost. Faster hardware helps execute the tests, while acceleration structures organise geometry so most objects can be ruled out cheaply. A more realistic result comes from the model and sampling choices as well as raw processing speed. / ONE CAVEAT The example explains geometric visibility, not the complete rendering equation. Real light also has wave effects, and practical renderers use approximations rather than tracing every physical photon. / KEEP THIS A pixel depends on which paths remain possible through the scene, so changing geometry can change appearance without changing a surface’s paint. / SOURCE TRAIL [1] Pharr, Jakob and Humphreys — Physically Based Rendering https://pbr-book.org/4ed/Introduction/Photorealistic_Rendering_and_the_Ray-Tracing_Algorithm NEXT: Why a camera cannot focus on everything at once --- HARD IDEAS. PLAIN TEXT. You are receiving this because you asked for one clear computer-science or physics idea each day. Unsubscribe: https://plaintext.click/unsubscribe View in browser: https://plaintext.click/newsletter/2026/12/2026-12-17-ray-tracing.html From: Plain/Text / Brickston Consulting · 30 N Gould St Ste N, Sheridan, WY 82801 US · knowledge@plaintext.click