About low-discrepancy sequence and image filters in ray trac back

Board: Home Board index Raytracing General Development

(L) [2012/07/05] [ost by shiqiu1105] [About low-discrepancy sequence and image filters in ray trac] Wayback!

Hi guys,


I have been reading pbrt and writing my own ray tracer. But I have bumped into a question though.


In pbrt, it implements a low-discrepancy sampler which use the 0-2 sequence to generate high quality samples.

It also states that when low-discrepancy pattern is used, the best image result comes with box filter(or no filter at all).


Does this mean that, if I want to use low-discrepancy samples, then it's not necessary to add any filter to my ray tracer at all?

And pbrt seems to say that the low-discrepancy sampler is the best, so in a filter will not be necessary to get the best image quality.


I also noticed that it's written in pbrt that quasi monte carlo techniques such as low discrepancy sequence cannot be used together with russian roulette?


And, is it really necessary to further shuffle the generated low-discrepancy sequence given that they are already scrambled??

The author of pbrt says it's necessary, other there will be unexpected artifacts. But I have tried otherwise, and the images look just fine for me.


Can someone explain these to me, I am quite confused with all these knowledge.
(L) [2012/07/06] [ost by spectral] [About low-discrepancy sequence and image filters in ray trac] Wayback!

Hi,

First you can use your 0-2 sequence for a lot of 'sampling' purposes... for sampling BRDF, RR, light, pixels etc...

Now, if you sample your pixel, 0-2 sequence allow you to have a good distribution of the samples over one pixel.
It is important to have "in average" the right color of the pixel.

Where the filter will "smooth" your image to avoid aliasing between pixels.
(L) [2012/07/07] [ost by shiqiu1105] [About low-discrepancy sequence and image filters in ray trac] Wayback!

>> spectral wrote:Hi,

First you can use your 0-2 sequence for a lot of 'sampling' purposes... for sampling BRDF, RR, light, pixels etc...

Now, if you sample your pixel, 0-2 sequence allow you to have a good distribution of the samples over one pixel.
It is important to have "in average" the right color of the pixel.

Where the filter will "smooth" your image to avoid aliasing between pixels.
So, is filter still necessary when using 0-2 sequence to sample pixels?
(L) [2012/07/07] [ost by graphicsMan] [About low-discrepancy sequence and image filters in ray trac] Wayback!

Not really "necessary".  Try it first with a box filter, since it is zero extra implementation.  If you need better filtering, you should be able to use the sequence to pull samples from a b-spline filter without too much effort.
(L) [2012/07/07] [ost by ingenious] [About low-discrepancy sequence and image filters in ray trac] Wayback!

I understand the argument that a constant filter introduces the least amount of variance, because the camera rays are usually uniformly sampled through the pixel. But this is visually the worst possible filter, regardless of what sampling is used. I like the view that rendering is the process of sampling and reconstructing a continuous 2D function (in case of a pinhole camera), which is the incoming radiance on the image plane. Producing an image means simply to sample this function on a regular grid. And everybody knows that a piece-wise constant reconstruction of a function, which the box filter effectively does, is the worst possible one. One can also importance sample the image reconstruction filter, there's a paper called "Filter Importance Sampling" by Manfred Ernst that investigates this.
(L) [2012/07/07] [ost by graphicsMan] [About low-discrepancy sequence and image filters in ray trac] Wayback!

But won't you have to be more careful with your low-discrepancy sequences?  Or does Manfred's paper cover LDSs?  Seems like you'd need randomized QMC if you want to do importance sampling of filters?
(L) [2012/07/08] [ost by ingenious] [About low-discrepancy sequence and image filters in ray trac] Wayback!

>> graphicsMan wrote:But won't you have to be more careful with your low-discrepancy sequences?  Or does Manfred's paper cover LDSs?  Seems like you'd need randomized QMC if you want to do importance sampling of filters?
Manfred's paper explicitly covers LDSs, but why does it matter what sample generator you use? The pixel filter is another multiplicative term in your (possibly high dimensional) integrand which, if not constant, introduces variance, and better be importance sampled. I think it's as simple as that.

back