
head bust 3d model
import bpy import os def setup_pes_custom_face(): # 1. 清理初始场景 bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete() # 2. 创建针对 PES 面部优化的基础头部网格 bpy.ops.mesh.primitive_uv_sphere_add(radius=1.0, location=(0, 0, 0), segments=32, ring_count=32) face_obj = bpy.context.active_object face_obj.name = "Caleb_PES_Face_Model" # 调整比例以符合真实人类比例(宽、高、深) face_obj.scale = (0.75, 0.95, 0.85) bpy.ops.object.transform_apply(scale=True) # 平滑网格着色 for f in face_obj.data.polygons: f.use_smooth = True # 3. 为面部纹理创建 PBR 材质 mat = bpy.data.materials.new(name="PES_Face_Material") mat.use_nodes = True nodes = mat.node_tree.nodes links = mat.node_tree.links # 清理默认节点并配置 Principled BSDF nodes.clear() node_bsdf = nod
4K·PBR·Tripo H3.1