Reduce render quality for testing.
This commit is contained in:
parent
b74feeb77c
commit
e69da59cd8
18 changed files with 21 additions and 22 deletions
Binary file not shown.
Binary file not shown.
|
@ -5,7 +5,7 @@ def setup_renderer(engine="CYCLES"):
|
|||
# Set up and do the render
|
||||
if engine=="CYCLES":
|
||||
bpy.context.scene.render.engine = 'CYCLES'
|
||||
bpy.context.scene.cycles.samples = 24.0
|
||||
bpy.context.scene.cycles.samples = 12.0
|
||||
bpy.context.scene.cycles.caustics_reflective = False
|
||||
bpy.context.scene.cycles.caustics_refractive = False
|
||||
bpy.context.scene.cycles.max_bounces = 0.0
|
||||
|
@ -16,4 +16,4 @@ def setup_renderer(engine="CYCLES"):
|
|||
bpy.data.scenes["Scene"].render.border_max_x = 0.65 # Set the border right at the image's right border
|
||||
bpy.context.scene.render.resolution_x = 600.0
|
||||
bpy.context.scene.render.resolution_y = 600.0
|
||||
bpy.context.scene.render.resolution_percentage = 100.0
|
||||
bpy.context.scene.render.resolution_percentage = 50.0
|
|
@ -16,23 +16,23 @@ def setup_scene():
|
|||
#bpy.context.scene.world.light_settings.use_environment_light = True
|
||||
|
||||
# Add back wall
|
||||
bpy.ops.mesh.primitive_plane_add(radius=20, location=(-10.0, 0.0, 0.0))
|
||||
bpy.ops.transform.rotate(value=math.pi/2.0, axis=(0.0,1.0,0.0))
|
||||
bpy.data.objects["Plane"].name = "back_wall"
|
||||
mat = bpy.data.materials.get("backwall-material")
|
||||
if mat is None:
|
||||
mat = bpy.data.materials.new("backwall-material")
|
||||
mat.diffuse_color = (0.25, 0.25, 0.25)
|
||||
mat.specular_color = (0.25, 0.25, 0.25)
|
||||
mat.diffuse_intensity = 1.0
|
||||
mat.specular_intensity = 1.0
|
||||
bpy.context.scene.objects.active = bpy.data.objects["back_wall"]
|
||||
if bpy.context.active_object.data.materials:
|
||||
# assign to 1st material slot
|
||||
bpy.context.active_object.data.materials[0] = mat
|
||||
else:
|
||||
# no slots
|
||||
bpy.context.active_object.data.materials.append(mat)
|
||||
# bpy.ops.mesh.primitive_plane_add(radius=20, location=(-10.0, 0.0, 0.0))
|
||||
# bpy.ops.transform.rotate(value=math.pi/2.0, axis=(0.0,1.0,0.0))
|
||||
# bpy.data.objects["Plane"].name = "back_wall"
|
||||
# mat = bpy.data.materials.get("backwall-material")
|
||||
# if mat is None:
|
||||
# mat = bpy.data.materials.new("backwall-material")
|
||||
# mat.diffuse_color = (0.25, 0.25, 0.25)
|
||||
# mat.specular_color = (0.25, 0.25, 0.25)
|
||||
# mat.diffuse_intensity = 1.0
|
||||
# mat.specular_intensity = 1.0
|
||||
# bpy.context.scene.objects.active = bpy.data.objects["back_wall"]
|
||||
# if bpy.context.active_object.data.materials:
|
||||
# # assign to 1st material slot
|
||||
# bpy.context.active_object.data.materials[0] = mat
|
||||
# else:
|
||||
# # no slots
|
||||
# bpy.context.active_object.data.materials.append(mat)
|
||||
|
||||
# Set up cameras
|
||||
bpy.data.objects["Camera"].location = (10.0, 0.0, -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue