Reduce render quality for testing.

This commit is contained in:
jmsgrogan 2017-10-24 13:48:41 +01:00
parent b74feeb77c
commit e69da59cd8
18 changed files with 21 additions and 22 deletions

View file

@ -22,7 +22,6 @@ def generate_models(shape, height, radius):
radius2,
height)
# Base
if "bio" not in shape:
radius1 = 0.3

View file

@ -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

View file

@ -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)

BIN
src/utility/test456/bio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

Binary file not shown.

View file

@ -1 +1 @@
{"height": "2.0", "radius": "0.6", "color": [0.1, 0.1, 0.1], "output": "test456", "shape": "cone"}
{"color": [0.1, 0.1, 0.1], "radius": 0.5665623488444744, "shape": "cone", "height": 1.542497772868874}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Binary file not shown.

View file

@ -1 +1 @@
{"height": 1.5, "radius": 1.5, "color": [0.1, 0.1, 0.1], "shape": "bio"}
{"height": 1.5, "color": [0.1, 0.1, 0.1], "shape": "bio", "radius": 1.5}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB