Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2016-01-23 01:19:23 +0300
committerThomas Dinges <blender@dingto.org>2016-01-23 01:19:23 +0300
commit456e7be9d2ed4f6534995ef6754376649a815ea4 (patch)
treec58625c8a944d9910d5bc482ea3029df30182e2b
parent7f65eb3f5346c101d7a341ca0071f2f1a26198db (diff)
Cycles: Change several default values (first batch).
This changes the following defaults: - Render settings: * Samples: 100 * Preview Samples: 50 * Filter: Blackmann-Harris * Tile Order: Hilbert Spiral - Lamp settings: * Use MIS: On - Material settings: * Volume Sampling: Multiple Importance Old files are not affected, I tested the versioning code back and forth. More changes are to come (World, BVH...) but that needs a bit more work.
-rw-r--r--intern/cycles/blender/addon/properties.py12
-rw-r--r--intern/cycles/blender/addon/version_update.py35
-rw-r--r--source/blender/blenkernel/BKE_blender.h2
3 files changed, 42 insertions, 7 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py
index d8084fa5014..fddc2a6a01a 100644
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@ -165,13 +165,13 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
name="Samples",
description="Number of samples to render for each pixel",
min=1, max=2147483647,
- default=10,
+ default=100,
)
cls.preview_samples = IntProperty(
name="Preview Samples",
description="Number of samples to render in the viewport, unlimited if 0",
min=0, max=2147483647,
- default=10,
+ default=50,
)
cls.preview_pause = BoolProperty(
name="Pause Preview",
@@ -380,7 +380,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
name="Filter Type",
description="Pixel filter type",
items=enum_filter_types,
- default='GAUSSIAN',
+ default='BLACKMAN_HARRIS',
)
cls.filter_width = FloatProperty(
name="Filter Width",
@@ -469,7 +469,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
name="Tile Order",
description="Tile order for rendering",
items=enum_tile_order,
- default='CENTER',
+ default='HILBERT_SPIRAL',
options=set(), # Not animatable!
)
cls.use_progressive_refine = BoolProperty(
@@ -726,7 +726,7 @@ class CyclesMaterialSettings(bpy.types.PropertyGroup):
name="Volume Sampling",
description="Sampling method to use for volumes",
items=enum_volume_sampling,
- default='DISTANCE',
+ default='MULTIPLE_IMPORTANCE',
)
cls.volume_interpolation = EnumProperty(
@@ -770,7 +770,7 @@ class CyclesLampSettings(bpy.types.PropertyGroup):
name="Multiple Importance Sample",
description="Use multiple importance sampling for the lamp, "
"reduces noise for area lamps and sharp glossy materials",
- default=False,
+ default=True,
)
cls.is_portal = BoolProperty(
name="Is Portal",
diff --git a/intern/cycles/blender/addon/version_update.py b/intern/cycles/blender/addon/version_update.py
index d8b3f5bc672..17b86261383 100644
--- a/intern/cycles/blender/addon/version_update.py
+++ b/intern/cycles/blender/addon/version_update.py
@@ -219,3 +219,38 @@ def do_versions(self):
if bpy.data.version <= (2, 76, 6):
for scene in bpy.data.scenes:
custom_bake_remap(scene)
+
+ # Several default changes for 2.77
+ if bpy.data.version <= (2, 76, 8):
+ for scene in bpy.data.scenes:
+ cscene = scene.cycles
+
+ # Samples
+ if not cscene.is_property_set("samples"):
+ cscene.samples = 10
+
+ # Preview Samples
+ if not cscene.is_property_set("preview_samples"):
+ cscene.preview_samples = 10
+
+ # Filter
+ if not cscene.is_property_set("filter_type"):
+ cscene.filter_type = 'GAUSSIAN'
+
+ # Tile Order
+ if not cscene.is_property_set("tile_order"):
+ cscene.tile_order = 'CENTER'
+
+ for lamp in bpy.data.lamps:
+ clamp = lamp.cycles
+
+ # MIS
+ if not clamp.is_property_set("use_multiple_importance_sampling"):
+ clamp.use_multiple_importance_sampling = False
+
+ for mat in bpy.data.materials:
+ cmat = mat.cycles
+
+ # Volume Sampling
+ if not cmat.is_property_set("volume_sampling"):
+ cmat.volume_sampling = 'DISTANCE'
diff --git a/source/blender/blenkernel/BKE_blender.h b/source/blender/blenkernel/BKE_blender.h
index 97d1a89afdb..965affa8556 100644
--- a/source/blender/blenkernel/BKE_blender.h
+++ b/source/blender/blenkernel/BKE_blender.h
@@ -42,7 +42,7 @@ extern "C" {
* and keep comment above the defines.
* Use STRINGIFY() rather than defining with quotes */
#define BLENDER_VERSION 276
-#define BLENDER_SUBVERSION 8
+#define BLENDER_SUBVERSION 9
/* Several breakages with 270, e.g. constraint deg vs rad */
#define BLENDER_MINVERSION 270
#define BLENDER_MINSUBVERSION 6