Brain Dump

Stochastic Sampling

Tags
computer-graphics

A post-filtering approach for fixing aliasing issues which uses ray-tracing to sample pixels randomly (jittering).

The approach is to use sub-samples, each [see page 23, randomly] distributed across a pixel, to determine what color it should be. In areas with a lot of texture changes, this produces a noisy affect (contrasting with the blurring found in other post-filtering approaches).

Method:

  1. Send out some samples for each pixel.
  2. If all of them are the same, use that color.
  3. else send out more samples and use an average of them.

Warn: rasterisation doesn't support stochastic-sampling because it requires a regular sampling grid.

Links to this note