Created
October 25, 2023 05:35
-
-
Save anttilipp/3e472fd4b582f979fc6c0cbb15f103bf to your computer and use it in GitHub Desktop.
Blender Python script to create the "Climate glass spheres" scene
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import math | |
from math import radians | |
# Use in Blender "Scripting" tab to create a 3D scene with objects, light and camera | |
# Code mainly written by ChatGPT (GPT-4) | |
def create_glass_sphere(location, color, radius): | |
# Deselect all objects | |
bpy.ops.object.select_all(action='DESELECT') | |
# Create a new mesh with a sphere | |
bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=location) | |
# Get the sphere object | |
sphere = bpy.context.active_object | |
# Create a new material | |
mat = bpy.data.materials.new(name="GlassMaterial") | |
# Enable 'Use nodes': | |
mat.use_nodes = True | |
nodes = mat.node_tree.nodes | |
# Clear default nodes | |
for node in nodes: | |
nodes.remove(node) | |
# Add a Principled BSDF node | |
node_shader = nodes.new(type='ShaderNodeBsdfPrincipled') | |
node_shader.inputs['Base Color'].default_value = color # RGBA | |
node_shader.inputs['IOR'].default_value = 1.45 # typical value for glass | |
node_shader.inputs['Roughness'].default_value = 0 # for sharp reflections | |
node_shader.inputs['Transmission'].default_value = 1 # full transmission (glass) | |
node_shader.location = (0, 0) | |
# Add material output node | |
node_output = nodes.new(type='ShaderNodeOutputMaterial') | |
node_output.location = (400, 0) | |
# Connect the Principled BSDF node to the Material Output node | |
links = mat.node_tree.links | |
link = links.new(node_shader.outputs['BSDF'], node_output.inputs['Surface']) | |
# Assign it to the object | |
if sphere.data.materials: | |
sphere.data.materials[0] = mat | |
else: | |
sphere.data.materials.append(mat) | |
return sphere | |
def add_camera(location, rotation, focal_length, dof_distance, f_stop): | |
# Create new camera | |
bpy.ops.object.camera_add(location=location, rotation=rotation) | |
camera = bpy.context.object | |
# Set camera to perspective and set the focal length | |
camera.data.type = 'PERSP' | |
camera.data.lens = focal_length | |
# Set depth of field distance | |
camera.data.dof.use_dof = True | |
camera.data.dof.focus_distance = dof_distance # The distance in Blender units | |
camera.data.dof.aperture_fstop = f_stop | |
# Set the camera display size so it's easily visible in the viewport | |
camera.data.display_size = 0.5 | |
return camera | |
# First, we'll delete all existing objects to start with a clean slate | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete() | |
# Delete all existing cameras (optional) | |
bpy.ops.object.select_all(action='DESELECT') # Deselect all objects | |
bpy.ops.object.select_by_type(type='CAMERA') | |
bpy.ops.object.delete() | |
# Add a camera | |
# Usage | |
location = (8.5, 24.0, -40.0) # Replace with desired location | |
rotation = (radians(12), radians(180), radians(180)) # Replace with desired rotation in radians | |
focal_length = 32.0 # mm focal length | |
dof_distance = 40.0 # meters (Blender units) for depth of field | |
f_stop = 6.0 # f-stop | |
camera = add_camera(location, rotation, focal_length, dof_distance, f_stop) | |
# Set render resolution | |
bpy.context.scene.render.resolution_x = 1080 # Width | |
bpy.context.scene.render.resolution_y = 1920 # Height | |
bpy.context.scene.render.resolution_percentage = 100 # Resolution percentage (100% is full quality) | |
# If you want to see the changes immediately in your viewport, you can set the active camera | |
bpy.context.scene.camera = camera | |
# Add a plane | |
# ########### | |
# 1. Add a plane | |
bpy.ops.mesh.primitive_plane_add() | |
plane = bpy.context.object # The added plane becomes the context object | |
# 2. Adjust its size and location | |
# Note: The plane is 2x2 by default, so we scale it down to get the desired dimensions. | |
plane.scale.x = 200 | |
plane.scale.y = 300 | |
plane.location.z = 0 # Set z to 0, it's already at 0 by default after creation | |
plane.location = (0, 70, 0) | |
# Apply the scaling (important if other operations, e.g., modifiers or animations, will follow) | |
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True) | |
# 3. Create a white material | |
material = bpy.data.materials.new(name="WhiteMaterial") # Create a new material | |
material.use_nodes = True | |
bsdf = material.node_tree.nodes["Principled BSDF"] | |
bsdf.inputs[0].default_value = (1, 1, 1, 1) # color | |
# 4. Assign the material to the plane | |
if len(plane.data.materials): # If there are any materials applied | |
plane.data.materials[0] = material # Assign the first slot to the new material | |
else: | |
plane.data.materials.append(material) # No slots? Then add a new one | |
# Optional: Update the scene | |
if bpy.context.view_layer.objects.active is not plane: | |
bpy.context.view_layer.objects.active = plane # make the plane the active object if it's not | |
plane.select_set(True) # Select the plane | |
bpy.ops.object.light_add(type='AREA', location=(-100, 0, -15), rotation=(math.radians(-88), math.radians(0), math.radians(-240))) | |
light_obj = bpy.context.object | |
light_data = light_obj.data | |
light_data.shape = 'RECTANGLE' | |
light_data.size = 200 # Size in the X direction | |
light_data.size_y = 50 # Size in the Y direction | |
light_data.energy = 750000 # Power in Watts | |
create_glass_sphere(location=(0.0000, 0.0000, -0.8), radius=0.8, color=(0.5179, 0.7379, 0.8519, 1.0)) | |
create_glass_sphere(location=(1.8000, 0.0000, -0.8), radius=0.8, color=(0.7809, 0.8784, 0.9301, 1.0)) | |
create_glass_sphere(location=(3.6000, 0.0000, -0.8), radius=0.8, color=(0.7033, 0.8390, 0.9080, 1.0)) | |
create_glass_sphere(location=(5.4000, 0.0000, -0.8), radius=0.8, color=(0.4936, 0.7226, 0.8436, 1.0)) | |
create_glass_sphere(location=(7.2000, 0.0000, -0.8), radius=0.8, color=(0.2575, 0.5696, 0.7612, 1.0)) | |
create_glass_sphere(location=(9.0000, 0.0000, -0.8), radius=0.8, color=(0.2261, 0.5280, 0.7399, 1.0)) | |
create_glass_sphere(location=(10.8000, 0.0000, -0.8), radius=0.8, color=(0.2366, 0.5419, 0.7470, 1.0)) | |
create_glass_sphere(location=(12.6000, 0.0000, -0.8), radius=0.8, color=(0.2052, 0.5003, 0.7258, 1.0)) | |
create_glass_sphere(location=(14.4000, 0.0000, -0.8), radius=0.8, color=(0.4936, 0.7226, 0.8436, 1.0)) | |
create_glass_sphere(location=(16.2000, 0.0000, -0.8), radius=0.8, color=(0.7033, 0.8390, 0.9080, 1.0)) | |
create_glass_sphere(location=(0.0000, 2.0000, -0.8), radius=0.8, color=(0.2105, 0.5073, 0.7293, 1.0)) | |
create_glass_sphere(location=(1.8000, 2.0000, -0.8), radius=0.8, color=(0.3721, 0.6457, 0.8021, 1.0)) | |
create_glass_sphere(location=(3.6000, 2.0000, -0.8), radius=0.8, color=(0.2749, 0.5842, 0.7689, 1.0)) | |
create_glass_sphere(location=(5.4000, 2.0000, -0.8), radius=0.8, color=(0.2366, 0.5419, 0.7470, 1.0)) | |
create_glass_sphere(location=(7.2000, 2.0000, -0.8), radius=0.8, color=(0.2366, 0.5419, 0.7470, 1.0)) | |
create_glass_sphere(location=(9.0000, 2.0000, -0.8), radius=0.8, color=(0.3478, 0.6303, 0.7938, 1.0)) | |
create_glass_sphere(location=(10.8000, 2.0000, -0.8), radius=0.8, color=(0.7033, 0.8390, 0.9080, 1.0)) | |
create_glass_sphere(location=(12.6000, 2.0000, -0.8), radius=0.8, color=(0.7033, 0.8390, 0.9080, 1.0)) | |
create_glass_sphere(location=(14.4000, 2.0000, -0.8), radius=0.8, color=(0.2749, 0.5842, 0.7689, 1.0)) | |
create_glass_sphere(location=(16.2000, 2.0000, -0.8), radius=0.8, color=(0.4936, 0.7226, 0.8436, 1.0)) | |
create_glass_sphere(location=(0.0000, 4.0000, -0.8), radius=0.8, color=(0.8255, 0.9008, 0.9423, 1.0)) | |
create_glass_sphere(location=(1.8000, 4.0000, -0.8), radius=0.8, color=(0.5543, 0.7610, 0.8644, 1.0)) | |
create_glass_sphere(location=(3.6000, 4.0000, -0.8), radius=0.8, color=(0.2749, 0.5842, 0.7689, 1.0)) | |
create_glass_sphere(location=(5.4000, 4.0000, -0.8), radius=0.8, color=(0.2052, 0.5003, 0.7258, 1.0)) | |
create_glass_sphere(location=(7.2000, 4.0000, -0.8), radius=0.8, color=(0.1529, 0.4311, 0.6904, 1.0)) | |
create_glass_sphere(location=(9.0000, 4.0000, -0.8), radius=0.8, color=(0.3113, 0.6072, 0.7813, 1.0)) | |
create_glass_sphere(location=(10.8000, 4.0000, -0.8), radius=0.8, color=(0.3721, 0.6457, 0.8021, 1.0)) | |
create_glass_sphere(location=(12.6000, 4.0000, -0.8), radius=0.8, color=(0.1948, 0.4865, 0.7187, 1.0)) | |
create_glass_sphere(location=(14.4000, 4.0000, -0.8), radius=0.8, color=(0.1739, 0.4588, 0.7046, 1.0)) | |
create_glass_sphere(location=(16.2000, 4.0000, -0.8), radius=0.8, color=(0.1477, 0.4242, 0.6869, 1.0)) | |
create_glass_sphere(location=(0.0000, 6.0000, -0.8), radius=0.8, color=(0.1686, 0.4519, 0.7010, 1.0)) | |
create_glass_sphere(location=(1.8000, 6.0000, -0.8), radius=0.8, color=(0.1686, 0.4519, 0.7010, 1.0)) | |
create_glass_sphere(location=(3.6000, 6.0000, -0.8), radius=0.8, color=(0.2105, 0.5073, 0.7293, 1.0)) | |
create_glass_sphere(location=(5.4000, 6.0000, -0.8), radius=0.8, color=(0.2261, 0.5280, 0.7399, 1.0)) | |
create_glass_sphere(location=(7.2000, 6.0000, -0.8), radius=0.8, color=(0.5774, 0.7750, 0.8720, 1.0)) | |
create_glass_sphere(location=(9.0000, 6.0000, -0.8), radius=0.8, color=(0.6065, 0.7898, 0.8803, 1.0)) | |
create_glass_sphere(location=(10.8000, 6.0000, -0.8), radius=0.8, color=(0.2105, 0.5073, 0.7293, 1.0)) | |
create_glass_sphere(location=(12.6000, 6.0000, -0.8), radius=0.8, color=(0.1582, 0.4381, 0.6940, 1.0)) | |
create_glass_sphere(location=(14.4000, 6.0000, -0.8), radius=0.8, color=(0.2523, 0.5626, 0.7576, 1.0)) | |
create_glass_sphere(location=(16.2000, 6.0000, -0.8), radius=0.8, color=(0.2749, 0.5842, 0.7689, 1.0)) | |
create_glass_sphere(location=(0.0000, 8.0000, -0.8), radius=0.8, color=(0.2870, 0.5918, 0.7730, 1.0)) | |
create_glass_sphere(location=(1.8000, 8.0000, -0.8), radius=0.8, color=(0.4693, 0.7072, 0.8353, 1.0)) | |
create_glass_sphere(location=(3.6000, 8.0000, -0.8), radius=0.8, color=(0.2749, 0.5842, 0.7689, 1.0)) | |
create_glass_sphere(location=(5.4000, 8.0000, -0.8), radius=0.8, color=(0.3113, 0.6072, 0.7813, 1.0)) | |
create_glass_sphere(location=(7.2000, 8.0000, -0.8), radius=0.8, color=(0.2870, 0.5918, 0.7730, 1.0)) | |
create_glass_sphere(location=(9.0000, 8.0000, -0.8), radius=0.8, color=(0.3964, 0.6611, 0.8104, 1.0)) | |
create_glass_sphere(location=(10.8000, 8.0000, -0.8), radius=0.8, color=(0.7033, 0.8390, 0.9080, 1.0)) | |
create_glass_sphere(location=(12.6000, 8.0000, -0.8), radius=0.8, color=(0.3964, 0.6611, 0.8104, 1.0)) | |
create_glass_sphere(location=(14.4000, 8.0000, -0.8), radius=0.8, color=(0.4328, 0.6841, 0.8228, 1.0)) | |
create_glass_sphere(location=(16.2000, 8.0000, -0.8), radius=0.8, color=(0.2105, 0.5073, 0.7293, 1.0)) | |
create_glass_sphere(location=(0.0000, 10.0000, -0.8), radius=0.8, color=(0.5543, 0.7610, 0.8644, 1.0)) | |
create_glass_sphere(location=(1.8000, 10.0000, -0.8), radius=0.8, color=(0.7809, 0.8784, 0.9301, 1.0)) | |
create_glass_sphere(location=(3.6000, 10.0000, -0.8), radius=0.8, color=(0.5543, 0.7610, 0.8644, 1.0)) | |
create_glass_sphere(location=(5.4000, 10.0000, -0.8), radius=0.8, color=(0.2749, 0.5842, 0.7689, 1.0)) | |
create_glass_sphere(location=(7.2000, 10.0000, -0.8), radius=0.8, color=(0.6646, 0.8193, 0.8969, 1.0)) | |
create_glass_sphere(location=(9.0000, 10.0000, -0.8), radius=0.8, color=(0.4328, 0.6841, 0.8228, 1.0)) | |
create_glass_sphere(location=(10.8000, 10.0000, -0.8), radius=0.8, color=(0.6065, 0.7898, 0.8803, 1.0)) | |
create_glass_sphere(location=(12.6000, 10.0000, -0.8), radius=0.8, color=(0.9482, 0.9589, 0.9649, 1.0)) | |
create_glass_sphere(location=(14.4000, 10.0000, -0.8), radius=0.8, color=(0.9691, 0.9665, 0.9649, 1.0)) | |
create_glass_sphere(location=(16.2000, 10.0000, -0.8), radius=0.8, color=(0.9540, 0.9617, 0.9659, 1.0)) | |
create_glass_sphere(location=(0.0000, 12.0000, -0.8), radius=0.8, color=(0.9659, 0.7010, 0.5788, 1.0)) | |
create_glass_sphere(location=(1.8000, 12.0000, -0.8), radius=0.8, color=(0.9176, 0.5569, 0.4405, 1.0)) | |
create_glass_sphere(location=(3.6000, 12.0000, -0.8), radius=0.8, color=(0.9866, 0.8847, 0.8247, 1.0)) | |
create_glass_sphere(location=(5.4000, 12.0000, -0.8), radius=0.8, color=(0.9866, 0.8256, 0.7379, 1.0)) | |
create_glass_sphere(location=(7.2000, 12.0000, -0.8), radius=0.8, color=(0.8946, 0.5038, 0.3998, 1.0)) | |
create_glass_sphere(location=(9.0000, 12.0000, -0.8), radius=0.8, color=(0.9866, 0.8256, 0.7379, 1.0)) | |
create_glass_sphere(location=(10.8000, 12.0000, -0.8), radius=0.8, color=(0.8547, 0.9146, 0.9476, 1.0)) | |
create_glass_sphere(location=(12.6000, 12.0000, -0.8), radius=0.8, color=(0.9540, 0.9617, 0.9659, 1.0)) | |
create_glass_sphere(location=(14.4000, 12.0000, -0.8), radius=0.8, color=(0.7421, 0.8587, 0.9190, 1.0)) | |
create_glass_sphere(location=(16.2000, 12.0000, -0.8), radius=0.8, color=(0.7033, 0.8390, 0.9080, 1.0)) | |
create_glass_sphere(location=(0.0000, 14.0000, -0.8), radius=0.8, color=(0.5179, 0.7379, 0.8519, 1.0)) | |
create_glass_sphere(location=(1.8000, 14.0000, -0.8), radius=0.8, color=(0.8547, 0.9146, 0.9476, 1.0)) | |
create_glass_sphere(location=(3.6000, 14.0000, -0.8), radius=0.8, color=(0.9700, 0.9622, 0.9576, 1.0)) | |
create_glass_sphere(location=(5.4000, 14.0000, -0.8), radius=0.8, color=(0.9912, 0.8631, 0.7878, 1.0)) | |
create_glass_sphere(location=(7.2000, 14.0000, -0.8), radius=0.8, color=(0.6355, 0.8045, 0.8886, 1.0)) | |
create_glass_sphere(location=(9.0000, 14.0000, -0.8), radius=0.8, color=(0.6065, 0.7898, 0.8803, 1.0)) | |
create_glass_sphere(location=(10.8000, 14.0000, -0.8), radius=0.8, color=(0.4693, 0.7072, 0.8353, 1.0)) | |
create_glass_sphere(location=(12.6000, 14.0000, -0.8), radius=0.8, color=(0.9737, 0.9449, 0.9280, 1.0)) | |
create_glass_sphere(location=(14.4000, 14.0000, -0.8), radius=0.8, color=(0.9802, 0.9148, 0.8764, 1.0)) | |
create_glass_sphere(location=(16.2000, 14.0000, -0.8), radius=0.8, color=(0.9719, 0.9536, 0.9428, 1.0)) | |
create_glass_sphere(location=(0.0000, 16.0000, -0.8), radius=0.8, color=(0.9540, 0.9617, 0.9659, 1.0)) | |
create_glass_sphere(location=(1.8000, 16.0000, -0.8), radius=0.8, color=(0.9802, 0.9148, 0.8764, 1.0)) | |
create_glass_sphere(location=(3.6000, 16.0000, -0.8), radius=0.8, color=(0.9719, 0.9536, 0.9428, 1.0)) | |
create_glass_sphere(location=(5.4000, 16.0000, -0.8), radius=0.8, color=(0.9737, 0.9449, 0.9280, 1.0)) | |
create_glass_sphere(location=(7.2000, 16.0000, -0.8), radius=0.8, color=(0.4328, 0.6841, 0.8228, 1.0)) | |
create_glass_sphere(location=(9.0000, 16.0000, -0.8), radius=0.8, color=(0.7033, 0.8390, 0.9080, 1.0)) | |
create_glass_sphere(location=(10.8000, 16.0000, -0.8), radius=0.8, color=(0.8956, 0.9340, 0.9552, 1.0)) | |
create_glass_sphere(location=(12.6000, 16.0000, -0.8), radius=0.8, color=(0.9540, 0.9617, 0.9659, 1.0)) | |
create_glass_sphere(location=(14.4000, 16.0000, -0.8), radius=0.8, color=(0.8255, 0.9008, 0.9423, 1.0)) | |
create_glass_sphere(location=(16.2000, 16.0000, -0.8), radius=0.8, color=(0.9737, 0.9449, 0.9280, 1.0)) | |
create_glass_sphere(location=(0.0000, 18.0000, -0.8), radius=0.8, color=(0.9719, 0.9536, 0.9428, 1.0)) | |
create_glass_sphere(location=(1.8000, 18.0000, -0.8), radius=0.8, color=(0.8255, 0.9008, 0.9423, 1.0)) | |
create_glass_sphere(location=(3.6000, 18.0000, -0.8), radius=0.8, color=(0.9700, 0.9622, 0.9576, 1.0)) | |
create_glass_sphere(location=(5.4000, 18.0000, -0.8), radius=0.8, color=(0.9499, 0.6311, 0.4976, 1.0)) | |
create_glass_sphere(location=(7.2000, 18.0000, -0.8), radius=0.8, color=(0.8547, 0.9146, 0.9476, 1.0)) | |
create_glass_sphere(location=(9.0000, 18.0000, -0.8), radius=0.8, color=(0.9599, 0.9645, 0.9670, 1.0)) | |
create_glass_sphere(location=(10.8000, 18.0000, -0.8), radius=0.8, color=(0.7421, 0.8587, 0.9190, 1.0)) | |
create_glass_sphere(location=(12.6000, 18.0000, -0.8), radius=0.8, color=(0.9269, 0.5781, 0.4568, 1.0)) | |
create_glass_sphere(location=(14.4000, 18.0000, -0.8), radius=0.8, color=(0.9866, 0.8847, 0.8247, 1.0)) | |
create_glass_sphere(location=(16.2000, 18.0000, -0.8), radius=0.8, color=(0.9499, 0.6311, 0.4976, 1.0)) | |
create_glass_sphere(location=(0.0000, 20.0000, -0.8), radius=0.8, color=(0.8577, 0.4189, 0.3346, 1.0)) | |
create_glass_sphere(location=(1.8000, 20.0000, -0.8), radius=0.8, color=(0.8115, 0.3211, 0.2758, 1.0)) | |
create_glass_sphere(location=(3.6000, 20.0000, -0.8), radius=0.8, color=(0.9617, 0.6761, 0.5469, 1.0)) | |
create_glass_sphere(location=(5.4000, 20.0000, -0.8), radius=0.8, color=(0.8171, 0.3322, 0.2810, 1.0)) | |
create_glass_sphere(location=(7.2000, 20.0000, -0.8), radius=0.8, color=(0.9576, 0.6512, 0.5151, 1.0)) | |
create_glass_sphere(location=(9.0000, 20.0000, -0.8), radius=0.8, color=(0.9700, 0.7260, 0.6106, 1.0)) | |
create_glass_sphere(location=(10.8000, 20.0000, -0.8), radius=0.8, color=(0.9269, 0.5781, 0.4568, 1.0)) | |
create_glass_sphere(location=(12.6000, 20.0000, -0.8), radius=0.8, color=(0.8115, 0.3211, 0.2758, 1.0)) | |
create_glass_sphere(location=(14.4000, 20.0000, -0.8), radius=0.8, color=(0.7672, 0.2325, 0.2340, 1.0)) | |
create_glass_sphere(location=(16.2000, 20.0000, -0.8), radius=0.8, color=(0.8484, 0.3977, 0.3183, 1.0)) | |
create_glass_sphere(location=(0.0000, 22.0000, -0.8), radius=0.8, color=(0.7340, 0.1661, 0.2026, 1.0)) | |
create_glass_sphere(location=(1.8000, 22.0000, -0.8), radius=0.8, color=(0.7617, 0.2215, 0.2288, 1.0)) | |
create_glass_sphere(location=(3.6000, 22.0000, -0.8), radius=0.8, color=(0.8900, 0.4932, 0.3916, 1.0)) | |
create_glass_sphere(location=(5.4000, 22.0000, -0.8), radius=0.8, color=(0.8807, 0.4720, 0.3753, 1.0)) | |
create_glass_sphere(location=(7.2000, 22.0000, -0.8), radius=0.8, color=(0.8171, 0.3322, 0.2810, 1.0)) | |
create_glass_sphere(location=(9.0000, 22.0000, -0.8), radius=0.8, color=(0.7396, 0.1772, 0.2078, 1.0)) | |
create_glass_sphere(location=(10.8000, 22.0000, -0.8), radius=0.8, color=(0.8060, 0.3100, 0.2706, 1.0)) | |
create_glass_sphere(location=(12.6000, 22.0000, -0.8), radius=0.8, color=(0.7285, 0.1550, 0.1974, 1.0)) | |
create_glass_sphere(location=(14.4000, 22.0000, -0.8), radius=0.8, color=(0.6346, 0.0738, 0.1585, 1.0)) | |
create_glass_sphere(location=(16.2000, 22.0000, -0.8), radius=0.8, color=(0.7728, 0.2436, 0.2392, 1.0)) | |
create_glass_sphere(location=(0.0000, 24.0000, -0.8), radius=0.8, color=(0.7672, 0.2325, 0.2340, 1.0)) | |
create_glass_sphere(location=(1.8000, 24.0000, -0.8), radius=0.8, color=(0.7008, 0.0997, 0.1712, 1.0)) | |
create_glass_sphere(location=(3.6000, 24.0000, -0.8), radius=0.8, color=(0.6231, 0.0701, 0.1566, 1.0)) | |
create_glass_sphere(location=(5.4000, 24.0000, -0.8), radius=0.8, color=(0.6346, 0.0738, 0.1585, 1.0)) | |
create_glass_sphere(location=(7.2000, 24.0000, -0.8), radius=0.8, color=(0.7008, 0.0997, 0.1712, 1.0)) | |
create_glass_sphere(location=(9.0000, 24.0000, -0.8), radius=0.8, color=(0.5885, 0.0591, 0.1511, 1.0)) | |
create_glass_sphere(location=(10.8000, 24.0000, -0.8), radius=0.8, color=(0.6115, 0.0664, 0.1548, 1.0)) | |
create_glass_sphere(location=(12.6000, 24.0000, -0.8), radius=0.8, color=(0.6000, 0.0627, 0.1529, 1.0)) | |
create_glass_sphere(location=(14.4000, 24.0000, -0.8), radius=0.8, color=(0.6923, 0.0923, 0.1677, 1.0)) | |
create_glass_sphere(location=(16.2000, 24.0000, -0.8), radius=0.8, color=(0.6000, 0.0627, 0.1529, 1.0)) | |
create_glass_sphere(location=(0.0000, 26.0000, -0.8), radius=0.8, color=(0.5539, 0.0480, 0.1456, 1.0)) | |
create_glass_sphere(location=(1.8000, 26.0000, -0.8), radius=0.8, color=(0.6346, 0.0738, 0.1585, 1.0)) | |
create_glass_sphere(location=(3.6000, 26.0000, -0.8), radius=0.8, color=(0.6000, 0.0627, 0.1529, 1.0)) | |
create_glass_sphere(location=(5.4000, 26.0000, -0.8), radius=0.8, color=(0.5885, 0.0591, 0.1511, 1.0)) | |
create_glass_sphere(location=(7.2000, 26.0000, -0.8), radius=0.8, color=(0.5423, 0.0443, 0.1437, 1.0)) | |
create_glass_sphere(location=(9.0000, 26.0000, -0.8), radius=0.8, color=(0.4501, 0.0148, 0.1290, 1.0)) | |
create_glass_sphere(location=(10.8000, 26.0000, -0.8), radius=0.8, color=(0.4039, 0.0000, 0.1216, 1.0)) | |
create_glass_sphere(location=(12.6000, 26.0000, -0.8), radius=0.8, color=(0.4385, 0.0111, 0.1271, 1.0)) | |
create_glass_sphere(location=(14.4000, 26.0000, -0.8), radius=0.8, color=(0.4731, 0.0221, 0.1326, 1.0)) | |
create_glass_sphere(location=(16.2000, 26.0000, -0.8), radius=0.8, color=(0.4155, 0.0037, 0.1234, 1.0)) | |
create_glass_sphere(location=(0.0000, 28.0000, -0.8), radius=0.8, color=(0.4039, 0.0000, 0.1216, 1.0)) | |
create_glass_sphere(location=(1.8000, 28.0000, -0.8), radius=0.8, color=(0.4847, 0.0258, 0.1345, 1.0)) | |
create_glass_sphere(location=(3.6000, 28.0000, -0.8), radius=0.8, color=(0.4501, 0.0148, 0.1290, 1.0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment