Blender 3D 天線渲染腳本
由 W Love 分享的筆記
用途 將 .stp 3D 圖檔(通訊天線組件)自動渲染成產品級 Studio 質感圖。 自動完成的工作 步驟 內容 1 清除 Blender 預設場景 2 匯入 .stp 檔案 3 依零件名稱自動分類並指派材質 4 設定 Studio 三燈佈光(主光 + 補光 + 頂光) 5 白色世界背景 6 等軸測正交相機(自動計算場景中心與包圍盒) 7 Cycles 渲染輸出 4K PNG 材質對應 零件類型 材質 外觀 灰色底板 Satin Aluminum (霧面噴砂鋁) 灰色金屬、粗糙度 0.40、金屬度 0.70 白色支架 Matte Aluminum (霧面鋁合金) 白色金屬、粗糙度 0.50、金屬度 0.60 綠色 PCB PCB Green FR4 深綠色、粗糙度 0.35、微弱次表面散射 未識別 Neutral Gray 中性灰、粗糙度 0.40 使用步驟 1\. 安裝 Blender 官網下載:https://www.blender.org/download/ 2\. 建立工作資料夾 3\. 修改腳本設定 打開 render.py,修改最上方的設定: 4\. 執行渲染 打開終端機,cd 到工作資料夾,執行: 若 Blender 不在 PATH 裡,改用完整路徑: Windows:"C:\Program Files\Blender Foundation\Blender 4.2\blender.exe" --background --python render.py Mac:/Applications/Blender.app/Contents/MacOS/Blender --background --python render.py 5\. 取得結果 跑完後同一資料夾裡會出現 antennarender.png(4K PNG)。 自訂選項 命令列指定 STP 檔名(不改…