Rendering with adaptive refinement sampling

General Project and community related discussion.

Moderator: coordinators

Rendering with adaptive refinement sampling

Postby aldozang » Mon Nov 22, 2010 1:19 pm

Hi guys,
I come to bring a new discussion. I hope we get developers interested in working on this idea, which is widely used in other renders. As always we are talking about performance, and many of us like to render large images where generally only a few small regions (about 10%) have a noise difficult to resolve with normal sampling. Let me tell you if we make a system adaptive refinement of sampling for the Luxrender. I think it's possible without too much effort to adapt Luxrender to make a calculation of the variance in each stage of sampling and so to reach a variance set by the user.
Thus, the pixels that already have a low variance will not be sampled again, and the pixels that have not achieved the desired level of variance will continue to be sampled.

I hope you understand something of the idea. Excuse me for my terrible english, as you can see I'm not so good. :D

Thanks!
User avatar
aldozang
Developer
 
Posts: 79
Joined: Wed Dec 16, 2009 4:02 pm
Location: Rio de Janeiro, Brasil

Re: Rendering with adaptive refinement sampling

Postby jeanphi » Mon Nov 22, 2010 2:48 pm

Hi,

Good idea! We are looking into such algorithms for a long time, but we didn't had time to implement one of them until now.
I had already tested a pixel variance estimate which gave a pretty good information about the noise level while being really easy to compute.

Jeanphi
jeanphi
Developer
 
Posts: 7220
Joined: Mon Jan 14, 2008 7:21 am

Re: Rendering with adaptive refinement sampling

Postby disgustingangel » Mon Nov 22, 2010 3:07 pm

aldozang wrote:Hi guys,
I think it's possible without too much effort to adapt Luxrender to make a calculation of the variance in each stage of sampling and so to reach a variance set by the user.
Thus, the pixels that already have a low variance will not be sampled again, and the pixels that have not achieved the desired level of variance will continue to be sampled.


Perhaps this could be useful even without the automatic variance detection... If I'm not wrong I've seen, in some versions of luxrender, a button in the top right corner of the GUI which should have centered the sampling on the selected portion of the image...
I think this could be very useful, cause sometimes there is a noticeable, even obvious, "variance in the variance" :D... maybe there could be some kind of a "sampling importance map", where we could paint the areas which are more problematic...
I think the automagic way is sampler work, or nor?
disgustingangel
 
Posts: 1
Joined: Tue Jun 16, 2009 5:09 am

Re: Rendering with adaptive refinement sampling

Postby aldozang » Mon Nov 22, 2010 3:08 pm

that's good! I have seen that the Luxrender code has a unused variable "variance" in the ContributionBuffer class.

;)
User avatar
aldozang
Developer
 
Posts: 79
Joined: Wed Dec 16, 2009 4:02 pm
Location: Rio de Janeiro, Brasil

Re: Rendering with adaptive refinement sampling

Postby aldozang » Mon Nov 22, 2010 3:20 pm

.. If I'm not wrong I've seen, in some versions of luxrender, a button in the top right corner of the GUI which should have centered the sampling on the selected portion of the image...


I do not remember seeing this button.

Well, I think we can do multiple implementations, using different metric for measuring the variance, and other controls of noise. In particular, these ideas would be good in scenes where the noise is concentrated in small areas (very common in several scenes, see the gallery), since the renderer would concentrate its efforts on sampling over these parts.
User avatar
aldozang
Developer
 
Posts: 79
Joined: Wed Dec 16, 2009 4:02 pm
Location: Rio de Janeiro, Brasil

Re: Rendering with adaptive refinement sampling

Postby jeanphi » Mon Nov 22, 2010 3:32 pm

aldozang wrote:that's good! I have seen that the Luxrender code has a unused variable "variance" in the ContributionBuffer class.

It is used by the metropolis sampler to bend sampling, but it has never been really worked on.
For the zone rendering, there was a button, but it did nothing and was removed to avoid confusion. Zone rendering is extremely difficult to implement with some samplers because they rely on whole picture normalization and zone rendering would destroy the render outside the zone.

Jeanphi
jeanphi
Developer
 
Posts: 7220
Joined: Mon Jan 14, 2008 7:21 am

Re: Rendering with adaptive refinement sampling

Postby patro » Fri Feb 11, 2011 10:46 am

Hi,

any news on this?
User avatar
patro
 
Posts: 1825
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests