How Rendering Works: a practical CGI guide
Rasterization is fast and approximate; path tracing follows light paths and is physically accurate.

“noisy”, “fireflies”, “black spots in glass”, “too slow” are all symptoms of how a renderer solves its problem. If you know what it is doing, you stop pushing random sliders and start changing the right one.
Key points
- Rasterization is fast and approximate; path tracing follows light paths and is physically accurate.
- Noise falls with the square root of the samples: four times the samples halve the noise.
- Real-time engines have about 16.7 ms per frame at 60 fps; offline renders take seconds to hours.
- Let the denoiser clean, not invent; check small text at 100 %.
Two Ways to Make an Image
- Rasterization: For each triangle, find which pixels it covers and shade them. Very fast, used by real-time engines and viewports. Reflections, shadows and global illumination need extra techniques.
- Ray tracing / path tracing: For each pixel, shoot rays from the camera into the scene and follow how light would reach it. Slower, but reflections, refractions and bounced light come out of the same physics.
- Hybrid: Modern real-time engines mix rasterization with ray-traced effects.
- Offline vs. real-time: Offline renderers spend seconds to hours per frame for quality; real-time renderers have about 16.7 ms per frame at 60 fps (33.3 ms at 30 fps).
The Path Tracing Idea
- Ray from the camera: It leaves the camera through a pixel, hits a surface, and the renderer asks: how much light arrives here?
- Direct light: Fire a shadow ray to a light. If nothing blocks it, add the light’s contribution multiplied by the material’s response.
- Indirect light: Pick a new direction according to the material (a diffuse surface chooses randomly; a mirror chooses the reflection direction) and repeat from the new point. Each repeat is a bounce.
- The rendering equation: The amount of light leaving a point is the emitted light plus all incoming light weighted by the BRDF and the cosine of the angle. Path tracing estimates this integral by random sampling.
- Monte Carlo: Random sampling gives a noisy but unbiased estimate. More samples average out the noise.
- Noise and samples: Noise falls with the square root of the sample count: to halve the noise, you need four times the samples. Doubling samples gives only a modest improvement.
- Importance sampling: Choose directions that matter more (toward lights, along the BRDF lobe) to reduce noise without bias.
- Russian roulette and bounce limits: Stop paths early when they contribute little, to save time.
Noise, Fireflies and Denoising
- Noise: Grain from random sampling. Sources: small bright lights, caustics, glass, indirect light through small openings.
- Fireflies: Isolated very bright pixels from rare high-energy paths. Reduce with clamping of indirect values, larger light sources, rough glossy surfaces, or more samples.
- Adaptive sampling: Spend more samples where the image is noisy and fewer where it is clean.
- Denoiser: An algorithm (often AI-based: OptiX, OpenImageDenoise) that removes noise using the image plus helper passes (albedo, normal). Fast, but can smear fine detail, text and textures.
- Rule: Render with enough samples that the denoiser only cleans, not invents. Check labels and small text at 100 %.
- Animation: Denoise carefully; flicker between frames is worse than grain. Use the same seed or temporal denoising when needed.
Caustics and Difficult Light
- Caustics: Light focused by glass or water onto a surface (the bright pattern under a glass of water). Hard for path tracers because the light path (light → glass → table → camera) is rare to find by chance.
- Strategies: Accept noise and more samples; use specialized caustic or photon methods; or fake the caustic as a texture/light gobo where it is not the point.
- Light through small openings: A bright sun through a keyhole is a rare path: noisy indoor scenes. Use portals or light sampling helpers.
- Glass shadows: Glass blocks shadow rays in the strict approach; many renderers use a shadow-ray shortcut for glass that is fast but physically inexact. Know which your engine uses.
Biased vs. Unbiased
- Unbiased: Gives the physically correct result with enough samples (pure path tracing).
- Biased: Introduces approximations (clamping, caching, irradiance maps, denoising) that trade a small error for much faster results.
- In practice: Almost every production renderer is partly biased. Understand which settings introduce error, and test them at the final resolution.
In the tools
- Blender Cycles: Render Properties → Sampling (Render and Viewport samples, Noise Threshold for adaptive sampling, Denoise), Light Paths (Max Bounces per type, Clamping), Film → Filter, Seed.
- Unreal Engine 5: Lumen (real-time global illumination and reflections) for speed; the Path Tracer (samples per pixel set in a Post Process Volume) for offline quality.
- Comparison test: Render one scene at four sample counts and plot noise vs. time; find the point of diminishing returns.
Common mistakes
- Raising samples to the maximum for every shot.
- Denoising away label text and fine texture.
- Ignoring fireflies instead of fixing the cause.
- Small, extremely bright lights.
- Trusting the viewport render as the final.