"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.92.0-linux64/2.92/scripts/addons/presets/pov/world/1_Clear_Blue_Sky.py" (13 Jan 2021, 1708 Bytes) of package /linux/misc/blender-2.92.0-linux64.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 import bpy
    2 scene = bpy.context.scene
    3 
    4 scene.world.pov.use_sky_blend = True
    5 #below multiplied by two for a better proportion Clear vs Overcast sky
    6 #since Clear sky is 19807 lux vs 2000 for overcast (sun is min 32000 max 100000)
    7 #http://www.pssurvival.com/PS/Lighting/Typical_LUX_Intensities_for_Day_and_Night-2017.pdf
    8 #https://en.wikipedia.org/wiki/Daylight
    9 #https://www.engineeringtoolbox.com/light-level-rooms-d_708.html
   10 #https://www.cactus2000.de/fr/unit/masslux.shtml
   11 #https://blendergrid.com/news/cycles-physically-correct-brightness
   12 #researched result blue is
   13     #Hue: 0.6
   14     #Saturation: 0.533
   15     #Lightness: 0.7
   16 #put scattering scale at 0.0002 and scattering color rgb <0.2061, 0.3933, 1.0>
   17 #with very small value like round rgb 0.00002 0.00002 0.00008
   18 #Sky color at zenith, sun 90° elevation = hsl <0.6, 0.533, 0.698>
   19 #Ground color = rgb <0.996, 0.965, 0.855>  = hsl <0.128, 0.141, 0.996>
   20 #Ground Brightness = 0.996
   21 
   22 scene.world.pov.horizon_color = (0.047, 0.034, 0.025) #24000 or 22000 lux roughly equals (sun+sky)/5
   23 scene.world.pov.zenith_color = (0.006, 0.013, 0.033) #19807 lux roughly equals hign noon Sun / 5
   24 scene.world.pov.ambient_color = (0.0, 0.0, 0.0)
   25 scene.world.mist_settings.use_mist = False
   26 scene.world.mist_settings.intensity = 0.0
   27 scene.world.mist_settings.depth = 25.0
   28 scene.world.mist_settings.start = 5.0
   29 scene.pov.media_enable = True
   30 scene.pov.media_scattering_type = '4'
   31 scene.pov.media_samples = 35
   32 scene.pov.media_diffusion_scale = (0.00002)
   33 scene.pov.media_diffusion_color = (0.000001, 0.000002, 0.000005)
   34 scene.pov.media_absorption_scale = (0.00002)
   35 scene.pov.media_absorption_color = (0.0000006067, 0.0000007939, 0.0)#up to 0.00007
   36 scene.pov.media_eccentricity = 0.0