Turn on GPU render.

This commit is contained in:
jmsgrogan 2017-10-24 14:07:41 +01:00
parent e69da59cd8
commit 848d503fc9
6 changed files with 5 additions and 2 deletions

View file

@ -5,6 +5,7 @@ def setup_renderer(engine="CYCLES"):
# Set up and do the render # Set up and do the render
if engine=="CYCLES": if engine=="CYCLES":
bpy.context.scene.render.engine = 'CYCLES' bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.device = 'GPU'
bpy.context.scene.cycles.samples = 12.0 bpy.context.scene.cycles.samples = 12.0
bpy.context.scene.cycles.caustics_reflective = False bpy.context.scene.cycles.caustics_reflective = False
bpy.context.scene.cycles.caustics_refractive = False bpy.context.scene.cycles.caustics_refractive = False
@ -16,4 +17,6 @@ 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.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_x = 600.0
bpy.context.scene.render.resolution_y = 600.0 bpy.context.scene.render.resolution_y = 600.0
bpy.context.scene.render.resolution_percentage = 50.0 bpy.context.scene.render.tile_x = 32
bpy.context.scene.render.tile_y = 32
bpy.context.scene.render.resolution_percentage = 100.0

Binary file not shown.

Binary file not shown.

View file

@ -1 +1 @@
{"color": [0.1, 0.1, 0.1], "radius": 0.5665623488444744, "shape": "cone", "height": 1.542497772868874} {"height": 2.23382656395708, "color": [0.1, 0.1, 0.1], "radius": 1.1783351658626844, "shape": "cone"}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 48 KiB