Various mistakes I’ve made while working on graphics projects.

Ray tracer skipping rays

Bilinear interpolation for upscaling

Out of range brightness leading to undefined behaviour

Undefined behaviour

Undefined behaviour

Undefined behaviour

Undefined behaviour

Undefined behaviour

Bounce rays self-intersecting

Reflection rays self-intersecting

Bounce rays self-intersecting

Spatial partitioning error

Spatial partitioning error

No fresnel on bounce rays

Narrow choke on fresnel

Undefined behaviour

Noisy gloss reflections

Even noisier gloss reflections

Rendering quads as triangles

Camera inside object

Camera inside object

Triangles behind camera backplane

Wrong reflection ray direction

Wrong backface culling

Wrong lighting direction

Wrong normal ray direction for spheres

Wrong refraction rays through sphere