
maniquí humanoide 3d
import bpy import random # Cancella la scena bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete() # Crea il materiale in legno mat_madera = bpy.data.materials.new(name="Madera") mat_madera.diffuse_color = (0.4, 0.2, 0.1, 1) # Crea il materiale per il tetto mat_techo = bpy.data.materials.new(name="Techo") mat_techo.diffuse_color = (0.1, 0.1, 0.1, 1) # Crea il terreno bpy.ops.mesh.primitive_plane_add(size=50) terreno = bpy.context.object terreno.name = "Terreno" # Funzione per la casa giapponese def crear_casa(x, y): # Base bpy.ops.mesh.primitive_cube_add(size=2, location=(x, y, 1)) home = bpy.context.object house.scale = (2, 2, 1.5) house.data.materials.append(wood_mat) # Soffitto bpy.ops.mesh.primitive_cone_add(vertices=4, radius1=3, depth=2, location=(x, y, 4)) roof = bpy.context.object ceiling.rotation_euler[2] = 0.785 roof.data.materials.append(roof_mat) # Crea più case for i in range(8): create_home(random.randint(-15,15), random.randint(-1
4K·PBR·Tripo H3.1