Use faster rending for testing.
This commit is contained in:
parent
050c3a4438
commit
d4ac6705e5
9 changed files with 6 additions and 3 deletions
Binary file not shown.
|
@ -43,4 +43,6 @@ def generate(shape,
|
|||
|
||||
else:
|
||||
bpy.context.scene.render.filepath = prefix + ".png"
|
||||
bpy.ops.render.render(write_still=True)
|
||||
bpy.ops.render.render(write_still=True)
|
||||
|
||||
bpy.ops.wm.save_as_mainfile(filepath=prefix + ".blend")
|
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
|
|
BIN
src/utility/test789/test789.blend
Normal file
BIN
src/utility/test789/test789.blend
Normal file
Binary file not shown.
BIN
src/utility/test789/test789.blend1
Normal file
BIN
src/utility/test789/test789.blend1
Normal file
Binary file not shown.
1
src/utility/test789/test789.json
Normal file
1
src/utility/test789/test789.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"shape": "cone", "color": [0.1, 0.1, 0.1], "radius": 0.45673644354564086, "height": 1.5622128980241115}
|
BIN
src/utility/test789/test789.png
Normal file
BIN
src/utility/test789/test789.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
Loading…
Reference in a new issue