Reduce render quality for testing.
|
@ -22,7 +22,6 @@ def generate_models(shape, height, radius):
|
||||||
radius2,
|
radius2,
|
||||||
height)
|
height)
|
||||||
|
|
||||||
|
|
||||||
# Base
|
# Base
|
||||||
if "bio" not in shape:
|
if "bio" not in shape:
|
||||||
radius1 = 0.3
|
radius1 = 0.3
|
||||||
|
|
|
@ -5,7 +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.samples = 24.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
|
||||||
bpy.context.scene.cycles.max_bounces = 0.0
|
bpy.context.scene.cycles.max_bounces = 0.0
|
||||||
|
@ -16,4 +16,4 @@ 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 = 100.0
|
bpy.context.scene.render.resolution_percentage = 50.0
|
|
@ -16,23 +16,23 @@ def setup_scene():
|
||||||
#bpy.context.scene.world.light_settings.use_environment_light = True
|
#bpy.context.scene.world.light_settings.use_environment_light = True
|
||||||
|
|
||||||
# Add back wall
|
# Add back wall
|
||||||
bpy.ops.mesh.primitive_plane_add(radius=20, location=(-10.0, 0.0, 0.0))
|
# bpy.ops.mesh.primitive_plane_add(radius=20, location=(-10.0, 0.0, 0.0))
|
||||||
bpy.ops.transform.rotate(value=math.pi/2.0, axis=(0.0,1.0,0.0))
|
# bpy.ops.transform.rotate(value=math.pi/2.0, axis=(0.0,1.0,0.0))
|
||||||
bpy.data.objects["Plane"].name = "back_wall"
|
# bpy.data.objects["Plane"].name = "back_wall"
|
||||||
mat = bpy.data.materials.get("backwall-material")
|
# mat = bpy.data.materials.get("backwall-material")
|
||||||
if mat is None:
|
# if mat is None:
|
||||||
mat = bpy.data.materials.new("backwall-material")
|
# mat = bpy.data.materials.new("backwall-material")
|
||||||
mat.diffuse_color = (0.25, 0.25, 0.25)
|
# mat.diffuse_color = (0.25, 0.25, 0.25)
|
||||||
mat.specular_color = (0.25, 0.25, 0.25)
|
# mat.specular_color = (0.25, 0.25, 0.25)
|
||||||
mat.diffuse_intensity = 1.0
|
# mat.diffuse_intensity = 1.0
|
||||||
mat.specular_intensity = 1.0
|
# mat.specular_intensity = 1.0
|
||||||
bpy.context.scene.objects.active = bpy.data.objects["back_wall"]
|
# bpy.context.scene.objects.active = bpy.data.objects["back_wall"]
|
||||||
if bpy.context.active_object.data.materials:
|
# if bpy.context.active_object.data.materials:
|
||||||
# assign to 1st material slot
|
# # assign to 1st material slot
|
||||||
bpy.context.active_object.data.materials[0] = mat
|
# bpy.context.active_object.data.materials[0] = mat
|
||||||
else:
|
# else:
|
||||||
# no slots
|
# # no slots
|
||||||
bpy.context.active_object.data.materials.append(mat)
|
# bpy.context.active_object.data.materials.append(mat)
|
||||||
|
|
||||||
# Set up cameras
|
# Set up cameras
|
||||||
bpy.data.objects["Camera"].location = (10.0, 0.0, -1)
|
bpy.data.objects["Camera"].location = (10.0, 0.0, -1)
|
||||||
|
|
BIN
src/utility/test456/bio.png
Normal file
After Width: | Height: | Size: 304 KiB |
BIN
src/utility/test456/cone.png
Normal file
After Width: | Height: | Size: 311 KiB |
BIN
src/utility/test456/mesh.png
Normal file
After Width: | Height: | Size: 346 KiB |
|
@ -1 +1 @@
|
||||||
{"height": "2.0", "radius": "0.6", "color": [0.1, 0.1, 0.1], "output": "test456", "shape": "cone"}
|
{"color": [0.1, 0.1, 0.1], "radius": 0.5665623488444744, "shape": "cone", "height": 1.542497772868874}
|
Before Width: | Height: | Size: 311 KiB After Width: | Height: | Size: 8.5 KiB |
|
@ -1 +1 @@
|
||||||
{"height": 1.5, "radius": 1.5, "color": [0.1, 0.1, 0.1], "shape": "bio"}
|
{"height": 1.5, "color": [0.1, 0.1, 0.1], "shape": "bio", "radius": 1.5}
|
Before Width: | Height: | Size: 304 KiB After Width: | Height: | Size: 304 KiB |