08 材质、透明度与显示模式
Blender 中常见疑问:"代码明明设置了透明度,为什么模型看起来还是不透明?" 很多时候不是材质本身错,而是当前 Viewport 显示模式不对。
一、常见显示模式
text
Wireframe
Solid
Material Preview
Rendered
Wireframe
只显示线框,适合检查内部结构、重叠和复杂 Mesh。
Solid
速度快、结构清楚,适合建模和机械检查。但它不一定按最终 Shader 的方式显示透明度。
Material Preview
检查材质非常实用。快捷方式:
text
Z
→ Material Preview
Rendered
更接近最终渲染,会考虑材质、灯光、环境和阴影,但性能开销更大。
二、Principled BSDF 常用参数
工业设备常关注:
text
Base Color
Metallic
Roughness
Alpha
- Base Color:基础颜色
- Metallic:金属度
- Roughness:粗糙度
- Alpha:透明度
例如:
text
Alpha = 1.0 完全不透明
Alpha = 0.16 很透明
三、透明材质还要注意 Render / Blend 设置
不同 Blender 版本中可能叫:
text
Blend Mode
Render Method
Alpha Blend
Blended
Dithered
只改 Alpha 但没有正确的透明渲染设置,显示或导出效果可能仍然不符合预期。
四、如何检查材质
text
选真正的 Mesh
↓
Properties → Material
↓
检查 Material 名称
↓
检查 Base Color / Metallic / Roughness / Alpha
↓
切 Material Preview
不要只选到 FIRE_DOOR_ROOT 这种 Empty。
五、LOD 重叠会干扰透明度判断
如果 LOD0、LOD1、LOD2 的烟罩同时重叠,即使每层 Alpha 都很低,叠加后也会显得更深。因此材质检查前应确保一次只显示一个 LOD。
六、工业项目材质检查清单
text
[ ] 材质名称正确
[ ] Base Color 正确
[ ] Metallic 合理
[ ] Roughness 合理
[ ] Alpha 正确
[ ] Material Preview 中正常
[ ] 没有多层 LOD 重叠
[ ] GLB 导出后 Three.js 中仍一致