3D Workspace
Home
Assets
Affiliate Program
Sign up/Log in
?
Upgrade
DCC Bridge
Anonymous1774702386
03-28 13:46
Model Name
mosaic tiled structure 3d model
Tags
architecture
architecture realistic
architecture rendering
architecture rendering realistic
import bpy
realistic
rendering
rendering realistic
Prompt
import bpy import random # Xóa scene bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete(use_global=False) # ===== ÁNH SÁNG MẶT TRỜI ===== bpy.ops.object.light_add(type='SUN', location=(200, -200, 300)) sun = bpy.context.object sun.data.energy = 4 # ===== MẶT ĐẤT ===== bpy.ops.mesh.primitive_plane_add(size=800, location=(0,0,0)) # ===== MATERIAL HOÀNG CUNG ===== def create_material(name, color): mat = bpy.data.materials.new(name) mat.use_nodes = True bsdf = mat.node_tree.nodes["Principled BSDF"] bsdf.inputs[0].default_value = (*color,1) return mat roof_mat = create_material("roof",(0.8,0.55,0.1)) wall_mat = create_material("wall",(0.9,0.8,0.6)) water_mat = create_material("water",(0.1,0.3,0.6)) tree_mat = create_material("tree",(0.1,0.5,0.1)) # ===== HÀM TẠO CUNG ĐIỆN ===== def palace(x,y,w,d,h): bpy.ops.mesh.primitive_cube_add(location=(x,y,h/2)) base=bpy.context.object base.scale=(w,d,h) base.data.materials.append(wall_mat)
Detailed Info
Related Models
Enter invite code
Enter invite code to get credits!