~/talk

Building a ray tracer in Javascript

Talkat Web Rebels 2018 · 2018-06-04..06-05· [javascript, web-animation]
slides:none on file

A tiny JavaScript ray tracer renders a scene of spheres with shadows, mirror reflections and refractions by shooting one ray per pixel from the camera, testing intersections with each object and recursively casting reflection/refraction rays. Implementation uses basic math (sphere intersection), outputs visible but noisy, non‑photoreal results and needs multiple samples for anti‑aliasing. Claim: ray tracing is trivial to implement but computationally heavy; a 149‑character business‑card version exists. Practical alternatives discussed: rasterization via WebGL/A‑Frame, glTF assets, and normal maps to fake detail for web performance.

AI-written summary · about

  1. 0:00Start
  2. 7:14Materiality
  3. 10:51Capturing an image on camera
  4. 20:27Rasterization
  5. 25:083D rendering techniques
  6. 30:58What makes a good 3D Asset?
  7. 31:48Lighting
  8. 31:58Content optimization
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.