[Bf-cycles] the behavior of independent light samples

Mohamed Sakr 3dsakr at gmail.com
Sun May 24 03:22:32 CEST 2015

in Blender Cycles, at the exporter, file blender_object.cpp
I see this:
int samples = get_int(clamp, "samples");
if(get_boolean(cscene, "use_square_samples"))
light->samples = samples * samples;
light->samples = samples;

which means a light can have its own samples independent from camera
I wanna know what is the behavior, in this 2 cases:
1- camera spp = 100, light spp = 220
2- camera spp = 100, light spp = 30

is it probability? so in case 1 it may lead to 2.2 light samples per 1
camera sample "may be 2 or 3 depending on random number" , or how it works.

I'm creating an exporter and need to give the user this "hidden" feature
per light.

Mohamed Sakr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20150524/d211d3ee/attachment.htm 

More information about the Bf-cycles mailing list