Turn on GPU render.
This commit is contained in:
parent
e69da59cd8
commit
848d503fc9
6 changed files with 5 additions and 2 deletions
Binary file not shown.
|
@ -5,6 +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.device = 'GPU'
|
||||
bpy.context.scene.cycles.samples = 12.0
|
||||
bpy.context.scene.cycles.caustics_reflective = 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.context.scene.render.resolution_x = 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
|
Loading…
Add table
Add a link
Reference in a new issue