[Bf-extensions-cvs] [f3352059] master: fixed world presets (Sky model) broken by 2.8 changes

Maurice Raybaud noreply at git.blender.org
Wed May 29 21:40:08 CEST 2019


Commit: f3352059b368d0cb8454318c8772767242cd648f
Author: Maurice Raybaud
Date:   Wed May 29 21:39:58 2019 +0200
Branches: master
https://developer.blender.org/rBAf3352059b368d0cb8454318c8772767242cd648f

fixed world presets (Sky model) broken by 2.8 changes

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

M	presets/pov/world/1_Clear_Blue_Sky.py
M	presets/pov/world/2_Partly_Hazy_Sky.py
M	presets/pov/world/3_Overcast_Sky.py
M	presets/pov/world/4_Cartoony_Sky.py
M	presets/pov/world/5_Under_Water.py

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

diff --git a/presets/pov/world/1_Clear_Blue_Sky.py b/presets/pov/world/1_Clear_Blue_Sky.py
index 9928c0e7..54a18fd8 100644
--- a/presets/pov/world/1_Clear_Blue_Sky.py
+++ b/presets/pov/world/1_Clear_Blue_Sky.py
@@ -1,7 +1,7 @@
 import bpy
 scene = bpy.context.scene
 
-scene.world.use_sky_blend = True
+scene.world.pov.use_sky_blend = True
 #below multiplied by two for a better proportion Clear vs Overcast sky
 #since Clear sky is 19807 lux vs 2000 for overcast (sun is min 32000 max 100000)
 #http://www.pssurvival.com/PS/Lighting/Typical_LUX_Intensities_for_Day_and_Night-2017.pdf
@@ -19,9 +19,9 @@ scene.world.use_sky_blend = True
 #Ground color = rgb <0.996, 0.965, 0.855>  = hsl <0.128, 0.141, 0.996>
 #Ground Brightness = 0.996
 
-scene.world.horizon_color = (0.047, 0.034, 0.025) #24000 or 22000 lux roughly equals (sun+sky)/5
-scene.world.zenith_color = (0.006, 0.013, 0.033) #19807 lux roughly equals hign noon Sun / 5
-scene.world.ambient_color = (0.0, 0.0, 0.0)
+scene.world.pov.horizon_color = (0.047, 0.034, 0.025) #24000 or 22000 lux roughly equals (sun+sky)/5
+scene.world.pov.zenith_color = (0.006, 0.013, 0.033) #19807 lux roughly equals hign noon Sun / 5
+scene.world.pov.ambient_color = (0.0, 0.0, 0.0)
 scene.world.mist_settings.use_mist = False
 scene.world.mist_settings.intensity = 0.0
 scene.world.mist_settings.depth = 25.0
diff --git a/presets/pov/world/2_Partly_Hazy_Sky.py b/presets/pov/world/2_Partly_Hazy_Sky.py
index 59c1182a..78562dc1 100644
--- a/presets/pov/world/2_Partly_Hazy_Sky.py
+++ b/presets/pov/world/2_Partly_Hazy_Sky.py
@@ -1,7 +1,7 @@
 import bpy
 scene = bpy.context.scene
 
-scene.world.use_sky_blend = True
+scene.world.pov.use_sky_blend = True
 #below multiplied by two for a better proportion Clear vs Overcast sky
 #since Clear sky is 19807 lux vs 2000 for overcast (sun is min 32000 max 100000)
 #http://www.pssurvival.com/PS/Lighting/Typical_LUX_Intensities_for_Day_and_Night-2017.pdf
@@ -19,9 +19,9 @@ scene.world.use_sky_blend = True
 #Ground color = rgb <0.996, 0.965, 0.855>  = hsl <0.128, 0.141, 0.996>
 #Ground Brightness = 0.996
 
-scene.world.horizon_color = (0.380, 0.262, 0.183) #24000 or 22000 lux roughly equals (sun+sky)/5 + urban light pollution
-scene.world.zenith_color = (0.006, 0.013, 0.033) #19807 lux roughly equals hign noon Sun / 5
-scene.world.ambient_color = (0.0, 0.0, 0.0)
+scene.world.pov.horizon_color = (0.380, 0.262, 0.183) #24000 or 22000 lux roughly equals (sun+sky)/5 + urban light pollution
+scene.world.pov.zenith_color = (0.006, 0.013, 0.033) #19807 lux roughly equals hign noon Sun / 5
+scene.world.pov.ambient_color = (0.0, 0.0, 0.0)
 scene.world.mist_settings.use_mist = False
 scene.world.mist_settings.intensity = 0.0
 scene.world.mist_settings.depth = 25.0
diff --git a/presets/pov/world/3_Overcast_Sky.py b/presets/pov/world/3_Overcast_Sky.py
index 605f879d..fc6c99df 100644
--- a/presets/pov/world/3_Overcast_Sky.py
+++ b/presets/pov/world/3_Overcast_Sky.py
@@ -1,12 +1,12 @@
 import bpy
 scene = bpy.context.scene
 
-scene.world.use_sky_blend = True
-scene.world.horizon_color = (0.477, 0.536, 0.604)
+scene.world.pov.use_sky_blend = True
+scene.world.pov.horizon_color = (0.477, 0.536, 0.604)
 #below divided by ten for a better proportion Clear vs Overcast sky
 #since Clear sky is 20000 lux vs 2000 up to 10000 for overcast
-scene.world.zenith_color = (0.034, 0.043, 0.047)
-scene.world.ambient_color = (0.0, 0.0, 0.0)
+scene.world.pov.zenith_color = (0.034, 0.043, 0.047)
+scene.world.pov.ambient_color = (0.0, 0.0, 0.0)
 scene.world.mist_settings.use_mist = False
 scene.world.mist_settings.intensity = 0.0
 scene.world.mist_settings.depth = 25.0
diff --git a/presets/pov/world/4_Cartoony_Sky.py b/presets/pov/world/4_Cartoony_Sky.py
index e3c552c0..f38a7b97 100644
--- a/presets/pov/world/4_Cartoony_Sky.py
+++ b/presets/pov/world/4_Cartoony_Sky.py
@@ -1,12 +1,12 @@
 import bpy
 scene = bpy.context.scene
 
-scene.world.use_sky_blend = True
+scene.world.pov.use_sky_blend = True
 #below multiplied by two for a better proportion Clear vs Overcast sky 
 #since Clear sky is 20000 lux vs 2000 for overcast
-scene.world.horizon_color = (0.350*2, 0.611*2, 1.0*2)
-scene.world.zenith_color = (0.05000000074505806*2, 0.125*2, 0.5*2)
-scene.world.ambient_color = (0.0, 0.0, 0.0)
+scene.world.pov.horizon_color = (0.350*2, 0.611*2, 1.0*2)
+scene.world.pov.zenith_color = (0.05000000074505806*2, 0.125*2, 0.5*2)
+scene.world.pov.ambient_color = (0.0, 0.0, 0.0)
 scene.world.mist_settings.use_mist = False
 scene.world.mist_settings.intensity = 0.0
 scene.world.mist_settings.depth = 25.0
diff --git a/presets/pov/world/5_Under_Water.py b/presets/pov/world/5_Under_Water.py
index e6659016..44b33a38 100644
--- a/presets/pov/world/5_Under_Water.py
+++ b/presets/pov/world/5_Under_Water.py
@@ -1,12 +1,12 @@
 import bpy
 scene = bpy.context.scene
 
-scene.world.use_sky_blend = True
+scene.world.pov.use_sky_blend = True
 #below multiplied by two for a better proportion Clear vs Overcast sky 
 #since Clear sky is 20000 lux vs 2000 for overcast
-scene.world.horizon_color = (0.0, 0.0, 0.0)
-scene.world.zenith_color = (0.250980406999588, 0.6117647290229797, 1.0)
-scene.world.ambient_color = (0.0, 0.0, 0.0)
+scene.world.pov.horizon_color = (0.0, 0.0, 0.0)
+scene.world.pov.zenith_color = (0.250980406999588, 0.6117647290229797, 1.0)
+scene.world.pov.ambient_color = (0.0, 0.0, 0.0)
 scene.world.mist_settings.use_mist = False
 scene.world.mist_settings.intensity = 0.0
 scene.world.mist_settings.depth = 25.0



More information about the Bf-extensions-cvs mailing list