Because the other half of the time I'm returning twice kt. 0.5 * kt * 2 + 0 == kt. Otherwise what is the point of glassmaterial multiplying its computed colour by pdfW?In the second case you are returning BLACK half of the times. How can the results be identical ?
Problem understanding Material::Sample () behaviour
Re: Problem understanding Material::Sample () behaviour
Re: Problem understanding Material::Sample () behaviour
Found the problem. I was using forward-backward tracing. When I switched to backward-only, it worked fine.
Which points to a bug in the forward-backward processing I think.
Which points to a bug in the forward-backward processing I think.
Re: Problem understanding Material::Sample () behaviour
backward raytracing = rays start at the camera
forward raytracing = rays start at light sources
forward raytracing = rays start at light sources
Re: Problem understanding Material::Sample () behaviour
@BruceXu There's a setting used in (.e.g) scenes/cornell/cornell-glass.cfg: which (when enabled) seems to cause the problem. It's not documented in the wiki, but it's definitely used in the code.
There is another setting in there:, which is documented, and looks suspiciously like it might be causing the behaviour I'm seeing. I'll do a bit more investigation.
Code: Select all
path.hybridbackforward.enable = 1
There is another setting in there:
Code: Select all
path.clamping.variance.maxvalue