Why are there these patterns in these pathtraced images?

37 Views Asked by At

I've written a path tracing renderer for a technology class, and, while examining the histograms of the resulting images, I found a weird wavy pattern. The resultant image is the average of many passes, and my program can also store values above 255 internally, but clips them to 255 before writing the file. Why does this happen? 1 pass: 1 pass histogram 1 pass histogram

2 passes: 2 pass histogram 1 pass histogram

25 passes: 25 pass histogram 1 pass histogram

50 passes: 50 pass histogram 1 pass histogram

100 passes: 100 pass histogram 1 pass histogram

5000 passes: 5000 pass histogram 1 pass histogram

1

There are 1 best solutions below

2
On BEST ANSWER

To simplify matters assume that you generate a sequence of random images (noise) but all with a fixed given histogram (e.g. the histogram of your first image). Then averaging a number of these images will result in an image with a histogram that is (approximately) a convolution power of the given fixed histogram. My guess is that something like that is happening here as well. Since now the image has a strong spatial correlation the result will not simply be a convolution but something similar. The bins in the histogram will smooth out with the number of samples.