Light sampling

Discussion related to the implementation of new features & algorithms to the Core Engine.

Moderators: jromang, tomb, zcott, coordinators

Light sampling

Postby jeanphi » Sat Nov 26, 2011 4:18 am

Hi,

I've almost finished the rewrite of LightSamplingStrategy, it's 5% faster than the previous code, however it currently doesn't make much use of the shadow ray count. I wonder if that parameter is that usefull after all or if we should use the lights nSamples parameter. I'm going to test it some more and push the code.
The new interface will be usable for all light sampling operations (photon shooting, direct light sampling, light path sampling, whatever).

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

Re: Light sampling

Postby SATtva » Sat Nov 26, 2011 5:19 am

jeanphi wrote:I wonder if that parameter is that usefull after all ...

Although it makes penumbra areas denoise much quicker, it's usually not penumbras are the main source of noise in the scene, so i agree its usefulness is limited to some edge cases only (or maybe i don't know how to make a proper use of it).
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Light sampling

Postby J the Ninja » Sat Nov 26, 2011 8:55 pm

SATtva wrote:
jeanphi wrote:I wonder if that parameter is that usefull after all ...

Although it makes penumbra areas denoise much quicker, it's usually not penumbras are the main source of noise in the scene, so i agree its usefulness is limited to some edge cases only (or maybe i don't know how to make a proper use of it).


Especially if we still have the nsamples parameter, you can always just crank that up if some light is giving you issues with penumbra noise.
-Jason

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2207
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: Light sampling

Postby SATtva » Sun Nov 27, 2011 2:07 am

I believe we don't have this one exposed in LuxBlend now, right?
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Light sampling

Postby J the Ninja » Sun Nov 27, 2011 2:29 am

2.5? They're all exposed, you have to hit "advanced" for the one of the integrator.

..Actually, we seem to be missing nsamples for mesh lights. They support it, right?
-Jason

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2207
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: Light sampling

Postby SATtva » Sun Nov 27, 2011 2:41 am

I was talking about nsamples.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Light sampling

Postby J the Ninja » Sun Nov 27, 2011 3:02 am

It's available on the lamps, it's labeled "shadow ray samples". Just not on mesh lights for some reason
-Jason

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2207
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: Light sampling

Postby jeanphi » Sun Nov 27, 2011 3:58 pm

Hi,

Code pushed for you all to review and test.

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

Re: Light sampling

Postby J the Ninja » Fri Dec 02, 2011 11:22 am

Looks like there might be a bug with the infinite light? viewtopic.php?f=30&t=7488&start=10

Here's a quick test I did with the path integrator, since it lets you turn direct light sampling off completely:

direct light sampling on:
dls-on copy.jpg


direct light sampling off:
dls-off copy.jpg
-Jason

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2207
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: Light sampling

Postby jeanphi » Fri Dec 02, 2011 12:13 pm

Hi,

I'll have a look at it. Maybe EstimateDirect is not as fully compatible with the scheme as I first thought.

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

Next

Return to Architecture & Design

Who is online

Users browsing this forum: No registered users and 1 guest