Add fill lamp.

This commit is contained in:
jmsgrogan 2017-10-24 21:25:37 +01:00
parent d440ff4d8f
commit 1c015a450d
6 changed files with 10 additions and 6 deletions

View file

@ -35,13 +35,13 @@ def setup_scene(shape_parameters):
bpy.context.active_object.data.materials.append(mat)
# Set up cameras
bpy.data.objects["Camera"].location = (10.0, 0.0, -4)
bpy.data.objects["Camera"].location = (8.5, 0.0, -2)
fov = 65.0
bpy.data.objects["Camera"].data.angle = fov*(math.pi/180.0)
bpy.data.objects["Camera"].rotation_mode = 'XYZ'
bpy.data.objects["Camera"].rotation_euler[0] = math.pi/2.0
bpy.data.objects["Camera"].rotation_euler[0] = 1.5
bpy.data.objects["Camera"].rotation_euler[1] = 0.0
bpy.data.objects["Camera"].rotation_euler[2] = math.pi/2.0
bpy.data.objects["Camera"].rotation_euler[2] = 1.5708
# Lamps
bpy.data.scenes['Scene'].objects.unlink(bpy.data.objects["Lamp"])
@ -69,9 +69,13 @@ def setup_scene(shape_parameters):
bpy.context.active_object.data.materials.append(mat)
bpy.ops.mesh.primitive_plane_add(radius=5, location=(10.0, 10.0, -5.0))
bpy.ops.transform.rotate(value=-math.pi/2.0, axis=(1.0,2.0,0.0))
bpy.ops.transform.rotate(value=-math.pi/4.0, axis=(0.0,0.0,1.0))
#bpy.ops.transform.rotate(value=-math.pi/2.0, axis=(1.0,2.0,0.0))
#bpy.ops.transform.rotate(value=-math.pi/4.0, axis=(0.0,0.0,1.0))
bpy.data.objects["Plane"].name = "fill_lamp"
bpy.data.objects["fill_lamp"].location = (10.0, 10.0, -5.0)
bpy.data.objects["fill_lamp"].rotation_euler[0] = 0.6454
bpy.data.objects["fill_lamp"].rotation_euler[1] = 0.7169
bpy.data.objects["fill_lamp"].rotation_euler[2] = 0.0000
mat = bpy.data.materials.get("fill-material")
if mat is None:

Binary file not shown.

Binary file not shown.

View file

@ -1 +1 @@
{"division_offsets": [0.25, 0.25, 0.25, 0.25], "radius": 0.5151794595751276, "height": 4.115548193330971, "division_patterns": ["inv_square", "inv_square", "square", "inv_sine"], "shape": "pendant", "style": "light", "division_radii": [0.9221841829622927, 0.9489520915432629, 0.9897309968469092, 0.994921834206689], "fixture_radius": 0.3}
{"shape": "pendant", "division_offsets": [0.25, 0.25, 0.25, 0.25], "height": 3.6812407081509724, "fixture_radius": 0.3, "division_radii": [0.294556044831744, 0.587752251293952, 0.8598310084103927, 0.9056905517274985], "division_patterns": ["ramp", "ramp", "ramp", "sine"], "radius": 2.2969131039025945, "style": "billard"}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 122 KiB