Use faster rending for testing.

This commit is contained in:
jmsgrogan 2017-10-23 17:36:53 +01:00
parent 050c3a4438
commit d4ac6705e5
9 changed files with 6 additions and 3 deletions

View file

@ -44,3 +44,5 @@ def generate(shape,
else:
bpy.context.scene.render.filepath = prefix + ".png"
bpy.ops.render.render(write_still=True)
bpy.ops.wm.save_as_mainfile(filepath=prefix + ".blend")

View file

@ -5,10 +5,10 @@ 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 = 300.0
bpy.context.scene.cycles.samples = 30.0
bpy.context.scene.cycles.caustics_reflective = False
bpy.context.scene.cycles.caustics_refractive = False
bpy.context.scene.cycles.max_bounces = 1000.0
bpy.context.scene.cycles.max_bounces = 0.0
bpy.data.scenes["Scene"].render.use_border = True # Tell Blender to use border render
bpy.data.scenes["Scene"].render.border_max_y = 0.75 # Set the border top at 3/4 of the image's height
bpy.data.scenes["Scene"].render.border_min_y = 0.33 # Set the border bottom at 1/3 of the image's height

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@
{"shape": "cone", "color": [0.1, 0.1, 0.1], "radius": 0.45673644354564086, "height": 1.5622128980241115}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB