Iterate on graphics design
Remove atmosphere to increase contranst and switch to standard view transform instead of filmic. Replace the models for purple, yellow and white to be more consistest and distinct from each other.
This commit is contained in:
parent
25f7041aab
commit
c4e2de094f
10 changed files with 26 additions and 13 deletions
32
render.py
32
render.py
|
@ -12,7 +12,7 @@ def set_exclude(model, value):
|
|||
|
||||
def set_color(model, color):
|
||||
for obj in base_collection.children[model].collection.all_objects.values():
|
||||
if len(obj.material_slots) != 3:
|
||||
if len(obj.material_slots) < 3:
|
||||
continue
|
||||
obj.material_slots[1].material = bpy.data.materials[f"Liquid Surface {color}"]
|
||||
obj.material_slots[2].material = bpy.data.materials[f"Liquid Glass {color}"]
|
||||
|
@ -25,27 +25,43 @@ def render_bottle(color, model, output):
|
|||
set_exclude(model, True)
|
||||
|
||||
models = [
|
||||
"Cube",
|
||||
"Sphere",
|
||||
"Spiked",
|
||||
"Cone",
|
||||
"Cone Slim",
|
||||
"Cone Inverted",
|
||||
"Cylinder",
|
||||
# "Tubes Duo",
|
||||
"Tube",
|
||||
"Tubes Duo",
|
||||
"Tubes Trio",
|
||||
"Sphere",
|
||||
"Sphere Tiny",
|
||||
"Sphere Double",
|
||||
"Sphere Tubed",
|
||||
"Cube",
|
||||
"Spiked",
|
||||
"Pyramid",
|
||||
"Triangle",
|
||||
"Triangle Alt",
|
||||
"Pentagon",
|
||||
"Hexagon",
|
||||
]
|
||||
|
||||
|
||||
bottles = [
|
||||
["Red", "Cone", "//src/graphics/red.png"],
|
||||
["Green", "Cube", "//src/graphics/green.png"],
|
||||
["Black", "Spiked", "//src/graphics/black.png"],
|
||||
["Cyan", "Sphere", "//src/graphics/cyan.png"],
|
||||
["Purple", "Pentagon", "//src/graphics/purple.png"],
|
||||
["Yellow", "Cylinder", "//src/graphics/yellow.png"],
|
||||
["White", "Tubes Trio", "//src/graphics/white.png"],
|
||||
["Purple", "Sphere Double", "//src/graphics/purple.png"],
|
||||
["Yellow", "Triangle Alt", "//src/graphics/yellow.png"],
|
||||
["White", "Cone Inverted", "//src/graphics/white.png"],
|
||||
]
|
||||
|
||||
# Code to render a preview of all types
|
||||
# bottles = [["Red", type, f"//types/{type}.png"] for type in models]
|
||||
|
||||
# Code for prototyping speedup
|
||||
# bpy.data.scenes["Base"].cycles.samples = 1024
|
||||
|
||||
# Set active scene so the highlights/shadows isn't accidentally rendered
|
||||
bpy.context.window.scene = bpy.data.scenes["Base"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue