diff --git a/src/product_gen/__pycache__/generate_product.cpython-35.pyc b/src/product_gen/__pycache__/generate_product.cpython-35.pyc index 9d17d08..064e61f 100644 Binary files a/src/product_gen/__pycache__/generate_product.cpython-35.pyc and b/src/product_gen/__pycache__/generate_product.cpython-35.pyc differ diff --git a/src/product_gen/generate_product.py b/src/product_gen/generate_product.py index aac66ae..39a586d 100644 --- a/src/product_gen/generate_product.py +++ b/src/product_gen/generate_product.py @@ -43,4 +43,6 @@ def generate(shape, else: bpy.context.scene.render.filepath = prefix + ".png" - bpy.ops.render.render(write_still=True) \ No newline at end of file + bpy.ops.render.render(write_still=True) + + bpy.ops.wm.save_as_mainfile(filepath=prefix + ".blend") \ No newline at end of file diff --git a/src/rendering/__pycache__/setup_renderer.cpython-35.pyc b/src/rendering/__pycache__/setup_renderer.cpython-35.pyc index 073e1a0..cb6c074 100644 Binary files a/src/rendering/__pycache__/setup_renderer.cpython-35.pyc and b/src/rendering/__pycache__/setup_renderer.cpython-35.pyc differ diff --git a/src/rendering/__pycache__/setup_scene.cpython-35.pyc b/src/rendering/__pycache__/setup_scene.cpython-35.pyc index c7debdf..a86f76c 100644 Binary files a/src/rendering/__pycache__/setup_scene.cpython-35.pyc and b/src/rendering/__pycache__/setup_scene.cpython-35.pyc differ diff --git a/src/rendering/setup_renderer.py b/src/rendering/setup_renderer.py index 9696b19..8625d3d 100644 --- a/src/rendering/setup_renderer.py +++ b/src/rendering/setup_renderer.py @@ -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 diff --git a/src/utility/test789/test789.blend b/src/utility/test789/test789.blend new file mode 100644 index 0000000..231c84f Binary files /dev/null and b/src/utility/test789/test789.blend differ diff --git a/src/utility/test789/test789.blend1 b/src/utility/test789/test789.blend1 new file mode 100644 index 0000000..c108952 Binary files /dev/null and b/src/utility/test789/test789.blend1 differ diff --git a/src/utility/test789/test789.json b/src/utility/test789/test789.json new file mode 100644 index 0000000..1d262ee --- /dev/null +++ b/src/utility/test789/test789.json @@ -0,0 +1 @@ +{"shape": "cone", "color": [0.1, 0.1, 0.1], "radius": 0.45673644354564086, "height": 1.5622128980241115} \ No newline at end of file diff --git a/src/utility/test789/test789.png b/src/utility/test789/test789.png new file mode 100644 index 0000000..3219dd9 Binary files /dev/null and b/src/utility/test789/test789.png differ