[Bf-blender-cvs] [76870830e2c] gsoc-2018-many-light-sampling: Merge commit 'e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1^1' into gsoc-2018-many-light-sampling

Sam Kottler noreply at git.blender.org
Thu Jun 4 16:58:55 CEST 2020


Commit: 76870830e2cbb9b09255e41dfe6557d1eeeec29a
Author: Sam Kottler
Date:   Tue Jun 2 09:30:44 2020 -0600
Branches: gsoc-2018-many-light-sampling
https://developer.blender.org/rB76870830e2cbb9b09255e41dfe6557d1eeeec29a

Merge commit 'e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1^1' into gsoc-2018-many-light-sampling

===================================================================



===================================================================

diff --cc CMakeLists.txt
index 770a8dc1c72,2f5b8240c88..f0eeb5f1837
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@@ -217,10 -219,9 +219,10 @@@ option(WITH_BUILDINFO     "Include extr
  if(${CMAKE_VERSION} VERSION_LESS 2.8.8)
  	# add_library OBJECT arg unsupported
  	set(WITH_BUILDINFO OFF)
 +set(WITH_BUILDINFO OFF)
  endif()
- set(BUILDINFO_OVERRIDE_DATE "" CACHE STRING "Use instead of the current date for reproducable builds (empty string disables this option)")
- set(BUILDINFO_OVERRIDE_TIME "" CACHE STRING "Use instead of the current time for reproducable builds (empty string disables this option)")
+ set(BUILDINFO_OVERRIDE_DATE "" CACHE STRING "Use instead of the current date for reproducible builds (empty string disables this option)")
+ set(BUILDINFO_OVERRIDE_TIME "" CACHE STRING "Use instead of the current time for reproducible builds (empty string disables this option)")
  set(CPACK_OVERRIDE_PACKAGENAME "" CACHE STRING "Use instead of the standard packagename (empty string disables this option)")
  mark_as_advanced(CPACK_OVERRIDE_PACKAGENAME)
  mark_as_advanced(BUILDINFO_OVERRIDE_DATE)
diff --cc intern/cycles/blender/addon/properties.py
index 7c0283f0d72,ae07bcd38fe..db9e8bb46b3
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@@ -153,594 -158,587 +158,600 @@@ enum_texture_limit = 
  
  
  class CyclesRenderSettings(bpy.types.PropertyGroup):
-     @classmethod
-     def register(cls):
-         bpy.types.Scene.cycles = PointerProperty(
-             name="Cycles Render Settings",
-             description="Cycles render settings",
-             type=cls,
-         )
-         cls.device = EnumProperty(
-             name="Device",
-             description="Device to use for rendering",
-             items=enum_devices,
-             default='CPU',
-         )
-         cls.feature_set = EnumProperty(
-             name="Feature Set",
-             description="Feature set to use for rendering",
-             items=enum_feature_set,
-             default='SUPPORTED',
-         )
-         cls.shading_system = BoolProperty(
-             name="Open Shading Language",
-             description="Use Open Shading Language (CPU rendering only)",
-         )
  
-         cls.progressive = EnumProperty(
-             name="Integrator",
-             description="Method to sample lights and materials",
-             items=enum_integrator,
-             default='PATH',
-         )
+     device: EnumProperty(
+         name="Device",
+         description="Device to use for rendering",
+         items=enum_devices,
+         default='CPU',
+     )
+     feature_set: EnumProperty(
+         name="Feature Set",
+         description="Feature set to use for rendering",
+         items=enum_feature_set,
+         default='SUPPORTED',
+     )
+     shading_system: BoolProperty(
+         name="Open Shading Language",
+         description="Use Open Shading Language (CPU rendering only)",
+     )
  
-         cls.use_square_samples = BoolProperty(
-             name="Square Samples",
-             description="Square sampling values for easier artist control",
-             default=False,
-         )
+     progressive: EnumProperty(
+         name="Integrator",
+         description="Method to sample lights and materials",
+         items=enum_integrator,
+         default='PATH',
+     )
  
-         cls.use_light_tree = BoolProperty(
+     use_square_samples: BoolProperty(
+         name="Square Samples",
+         description="Square sampling values for easier artist control",
+         default=False,
+     )
+ 
++        use_light_tree = BoolProperty(
 +                name="Light Tree",
 +                description="Samples many lights more efficiently",
 +                default=False,
 +                )
 +
-         cls.splitting_threshold = FloatProperty(
++        splitting_threshold = FloatProperty(
 +                name="Splitting",
 +                description="Amount of lights to sample at a time, from one light at 0.0, to adaptively more lights as needed, to all lights at 1.0",
 +                min=0.0, max=1.0,
 +                default=0.0,
 +                )
 +
-         cls.samples = IntProperty(
-             name="Samples",
-             description="Number of samples to render for each pixel",
-             min=1, max=2147483647,
-             default=128,
-         )
-         cls.preview_samples = IntProperty(
-             name="Preview Samples",
-             description="Number of samples to render in the viewport, unlimited if 0",
-             min=0, max=2147483647,
-             default=32,
-         )
-         cls.preview_pause = BoolProperty(
-             name="Pause Preview",
-             description="Pause all viewport preview renders",
-             default=False,
-         )
-         cls.preview_active_layer = BoolProperty(
-             name="Preview Active Layer",
-             description="Preview active render layer in viewport",
-             default=False,
-         )
+     samples: IntProperty(
+         name="Samples",
+         description="Number of samples to render for each pixel",
+         min=1, max=(1 << 24),
+         default=128,
+     )
+     preview_samples: IntProperty(
+         name="Preview Samples",
+         description="Number of samples to render in the viewport, unlimited if 0",
+         min=0, max=(1 << 24),
+         default=32,
+     )
+     preview_pause: BoolProperty(
+         name="Pause Preview",
+         description="Pause all viewport preview renders",
+         default=False,
+     )
+     aa_samples: IntProperty(
+         name="AA Samples",
+         description="Number of antialiasing samples to render for each pixel",
+         min=1, max=2097151,
+         default=128,
+     )
+     preview_aa_samples: IntProperty(
+         name="AA Samples",
+         description="Number of antialiasing samples to render in the viewport, unlimited if 0",
+         min=0, max=2097151,
+         default=32,
+     )
+     diffuse_samples: IntProperty(
+         name="Diffuse Samples",
+         description="Number of diffuse bounce samples to render for each AA sample",
+         min=1, max=1024,
+         default=1,
+     )
+     glossy_samples: IntProperty(
+         name="Glossy Samples",
+         description="Number of glossy bounce samples to render for each AA sample",
+         min=1, max=1024,
+         default=1,
+     )
+     transmission_samples: IntProperty(
+         name="Transmission Samples",
+         description="Number of transmission bounce samples to render for each AA sample",
+         min=1, max=1024,
+         default=1,
+     )
+     ao_samples: IntProperty(
+         name="Ambient Occlusion Samples",
+         description="Number of ambient occlusion samples to render for each AA sample",
+         min=1, max=1024,
+         default=1,
+     )
+     mesh_light_samples: IntProperty(
+         name="Mesh Light Samples",
+         description="Number of mesh emission light samples to render for each AA sample",
+         min=1, max=1024,
+         default=1,
+     )
  
-         cls.aa_samples = IntProperty(
-             name="AA Samples",
-             description="Number of antialiasing samples to render for each pixel",
-             min=1, max=2097151,
-             default=128,
-         )
-         cls.preview_aa_samples = IntProperty(
-             name="AA Samples",
-             description="Number of antialiasing samples to render in the viewport, unlimited if 0",
-             min=0, max=2097151,
-             default=32,
-         )
-         cls.diffuse_samples = IntProperty(
-             name="Diffuse Samples",
-             description="Number of diffuse bounce samples to render for each AA sample",
-             min=1, max=1024,
-             default=1,
-         )
-         cls.glossy_samples = IntProperty(
-             name="Glossy Samples",
-             description="Number of glossy bounce samples to render for each AA sample",
-             min=1, max=1024,
-             default=1,
-         )
-         cls.transmission_samples = IntProperty(
-             name="Transmission Samples",
-             description="Number of transmission bounce samples to render for each AA sample",
-             min=1, max=1024,
-             default=1,
-         )
-         cls.ao_samples = IntProperty(
-             name="Ambient Occlusion Samples",
-             description="Number of ambient occlusion samples to render for each AA sample",
-             min=1, max=1024,
-             default=1,
-         )
-         cls.mesh_light_samples = IntProperty(
-             name="Mesh Light Samples",
-             description="Number of mesh emission light samples to render for each AA sample",
-             min=1, max=1024,
-             default=1,
-         )
+     subsurface_samples: IntProperty(
+         name="Subsurface Samples",
+         description="Number of subsurface scattering samples to render for each AA sample",
+         min=1, max=1024,
+         default=1,
+     )
  
-         cls.subsurface_samples = IntProperty(
-             name="Subsurface Samples",
-             description="Number of subsurface scattering samples to render for each AA sample",
-             min=1, max=1024,
-             default=1,
-         )
+     volume_samples: IntProperty(
+         name="Volume Samples",
+         description="Number of volume scattering samples to render for each AA sample",
+         min=1, max=1024,
+         default=1,
+     )
  
-         cls.volume_samples = IntProperty(
-             name="Volume Samples",
-             description="Number of volume scattering samples to render for each AA sample",
-             min=1, max=1024,
-             default=1,
-         )
+     sampling_pattern: EnumProperty(
+         name="Sampling Pattern",
+         description="Random sampling pattern used by the integrator",
+         items=enum_sampling_pattern,
+         default='SOBOL',
+     )
  
-         cls.sampling_pattern = EnumProperty(
-             name="Sampling Pattern",
-             description="Random sampling pattern used by the integrator",
-             items=enum_sampling_pattern,
-  

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list