Skip to content
Snippets Groups Projects
Commit 1df44726 authored by Maurice Raybaud's avatar Maurice Raybaud
Browse files

Added Lamp , Radiosity, and World presets

parent 87579bd1
Branches
Tags
No related merge requests found
Showing
with 268 additions and 0 deletions
#Since the dawn of time
import bpy
bpy.context.object.data.type = 'SUN'
lampdata = bpy.context.object.data
lampdata.color = (1.0, 1.0, 0.9843137264251709)
lampdata.energy = 1.2 #100 000lux
#lampdata.distance = 0.001
#lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#Since the dawn of time
import bpy
bpy.context.object.rotation_euler = (0,0,0)#And loc HIGH
bpy.context.object.location = (0,0,700000000)
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.shape = 'SQUARE'
lampdata.size = 30000000#0.02
#lampdata.size_y = 0.02
lampdata.shadow_ray_samples_x = 2
#lampdata.shadow_ray_samples_y = 3
lampdata.color = (1.0, 1.0, 1.0)
lampdata.energy = 1.094316#91193 #lux
lampdata.distance =695699968
#Since the dawn of time
import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.size = 1.2
lampdata.size_y = 2.10
lampdata.shadow_ray_samples_x = 2
lampdata.shadow_ray_samples_y = 3
lampdata.color = (1.0, 1.0, 1.0)
lampdata.energy = 1.094316#91193 #lux
lampdata.distance = 1.0
#After 1969
#made specifically for film and entertainment applications
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
lampdata.show_cone = True
lampdata.spot_size = 0.872665
lampdata.spot_blend = 0.9
lampdata.color = (0.99, 0.9882352948188782, 0.998)
lampdata.energy = 223.81796 #240000lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 0.001
lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#After 1962
#Common uses: outdoor lighting where good color rendering is needed, television/film lighting, sports fields, car headlights, flood lights, heavy flashlights, green house applications
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
lampdata.show_cone = True
lampdata.spot_size = 0.6
lampdata.spot_blend = 0.9
lampdata.color = (0.9490196108818054, 0.9882352948188782, 1.0)
lampdata.energy = 20.98293#9000lm/21.446(=lux)*0.004*6.25(distance) *2 for distance is the point of half strength
lampdata.distance = 0.025
lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#since 1960, no longer manufactured since 2016
#8mm projectors
#used in many automobiles headlamps ; outdoor lighting systems ; watercraft ; desktop lamps (smaller power).
#theatrical and studio (film and television) fixtures, including Ellipsoidal reflector spotlights, Source Four, and Fresnels; PAR Cans
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
lampdata.show_cone = True
lampdata.spot_size = 1.9
lampdata.spot_blend = 0.9
lampdata.color = (1.0, 0.9450980424880981, 0.8784313797950745)
lampdata.energy = 12.43433#5000/21.446 #lumen values/20 or lux when available used as a basis
lampdata.distance = 0.015#energy calculated for length 0.075 but width gives better result
lampdata.falloff_type = 'INVERSE_SQUARE'
#1908 - today
import bpy
bpy.context.object.data.type = 'POINT'
lampdata = bpy.context.object.data
lampdata.color = (1.0, 0.8392156958580017, 0.6666666865348816)
lampdata.energy = 7.46060#3.7303#1000/21.446/(lampdistance/candledistance) #lumen values/21.446 or lux when available used as a basis
lampdata.distance = 0.05
lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#since 1908
import bpy
bpy.context.object.data.type = 'POINT'
lampdata = bpy.context.object.data
lampdata.color = (1.0, 0.8196078431372549, 0.6980392156862745)
lampdata.energy = 2.98424#400/21.446 #lumen values/21.446 or lux when available used as a basis
lampdata.distance = 0.05
lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#Available since 1979 (Triphosphor lamps)
import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.size = 0.038
lampdata.size_y = 2.40284
lampdata.shadow_ray_samples_x = 1
lampdata.shadow_ray_samples_y = 2
lampdata.color = (1.0, 0.95686274766922, 0.9490200281143188)
lampdata.energy = 4.45304#4775lm/21.446(=lux)*0.004(distance) *2 for distance is the point of half strength 6200lm?
lampdata.distance = 1.0 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
#lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#since 1939 , T12 no longer manufactured since T8 propagated
import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.size = 0.038
lampdata.size_y = 1.2192
lampdata.shadow_ray_samples_x = 1
lampdata.shadow_ray_samples_y = 2
lampdata.color = (0.901, 1.0, 0.979)
lampdata.energy = 2.14492#2300lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
#lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#since 1973
import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.size = 0.026
lampdata.size_y = 0.59
lampdata.shadow_ray_samples_x = 1
lampdata.shadow_ray_samples_y = 2
lampdata.color = (0.95686274766922, 1.0, 0.9803921580314636)
lampdata.energy = 1.25898#1350lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
#Available since 1979
#more common than the warm white
import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.size = 0.026
lampdata.size_y = 0.59
lampdata.shadow_ray_samples_x = 1
lampdata.shadow_ray_samples_y = 2
lampdata.color = (0.8313725590705872, 0.9215686321258545, 1.0)
lampdata.energy = 1.25898#1350lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
#lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#Available since 1979
#developed to get closer to tungsten atmospher in interiors
import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.size = 0.026
lampdata.size_y = 0.59
lampdata.shadow_ray_samples_x = 1
lampdata.shadow_ray_samples_y = 2
lampdata.color = (1.0, 0.95686274766922, 0.8980392217636108)
lampdata.energy = 1.25898#1350lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
#Available since 1995
import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data
lampdata.size = 0.016
lampdata.size_y = 1.149
lampdata.shadow_ray_samples_x = 1
lampdata.shadow_ray_samples_y = 2
lampdata.color = (1.0, 0.83, 0.986274528503418)
lampdata.energy = 4.66287 #0.93257#4.66287#5000lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 0.1 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
#since the 1990's,
#Often circular or rectangular closed loop electrodeless fluorescent lamps
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
#lampdata.use_halo = True
lampdata.spot_size = 3.14
lampdata.spot_blend = 0.9
lampdata.color = (1.0, 0.9450980424880981, 0.8784313797950745)
lampdata.energy = 2.61121#2800/21.446 #lumen values/20 or lux when available used as a basis
lampdata.distance = 0.15#energy calculated for length 0.075 but width gives better result
lampdata.falloff_type = 'INVERSE_SQUARE'
#Starting from 1964
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
lampdata.show_cone = True
lampdata.color = (1.0, 0.772549033164978, 0.5607843399047852)
lampdata.energy = 4.47636#12000lm/21.446(=lux)*0.004(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0
lampdata.spot_size = 1.9
lampdata.spot_blend = 0.9
lampdata.falloff_type = 'INVERSE_SQUARE'
#(1700K) 135W Low Pressure Sodium Vapor Starting from 1932
#Mostly used for Outdoor city lighting, security lighting, long tunnel lighting
import bpy
bpy.context.object.data.type = 'POINT'
lampdata = bpy.context.object.data
lampdata.color = (1.0, 0.5764706134796143, 0.16078431904315948)
lampdata.energy = 8.43048#22600lm/21.446(=lux)*0.004(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0
lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#Starting from 1901
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
lampdata.show_cone = True
lampdata.spot_size = 1.25
lampdata.spot_blend = 0.9
lampdata.color = (0.8470588326454163, 0.9686274528503418, 1.0)
lampdata.energy = 17.25263#7400lm/21.446(=lux)*0.004*6.25(distance) *2 for distance is the point of half strength
lampdata.distance = 0.025
lampdata.falloff_type = 'INVERSE_SQUARE'
#Starting from 1876 (first type of commercial lamps developed with electricity)
#Carbon arc lamps were being phased out after the 1910s.
#For general lighting the lamp was replaced by the 1920s and 30s in most cities.
#The lamp continued to be used for spot lights, film production lighting and film projector lamps.
#Most of the remaining carbon arc lamps ceased production by the 1980s
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
#lampdata.use_halo = True
lampdata.show_cone = True
lampdata.spot_size = 1.5
lampdata.spot_blend = 0.3
lampdata.color = (1.0, 0.9803921580314636, 0.95686274766922)
lampdata.energy = 51.29162#55000lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 0.01
lampdata.falloff_type = 'INVERSE_SQUARE'
\ No newline at end of file
#since 2008
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
lampdata.show_cone = True
lampdata.spot_size = 1.39626 #80 degrees in radian
lampdata.spot_blend = 0.5
lampdata.color = (1.0, 0.9372549057006836, 0.9686274528503418)
lampdata.energy = 1.39886#1500lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 1.18 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment