備忘錄_20160105(定位) 修改 回首頁

程式 2018-07-23 13:34:22 1532324062 100
Blender 2.79 bake 出 normal map (視覺上的高低落差)

Blender 2.79 bake 出 normal map (視覺上的高低落差)
(可以節省計算資源,但有相當的擬真度)
  1. 刪除預設物體與燈光
  2. 修改 render 引擎為 Cycles Render
  3. ------------------
  4. 建立燈光,放在 layer3
  5. ------------------
  6. 建立一個高多邊形的物體,放在 layer1
  7. ------------------
  8. 建立一個低多邊形的物體,放在 layer2
  9. 在 UV Editing 中,給低多邊形物體 Unwrap 一下,並 create a new image,給予一個名稱,例如 normal_map,解析度可以 4k * 4k 喔。
  10. 在 Compositing 當中,先新增 material,然後新增一個 Image Texture,並選擇剛剛的 normal_map,注意,不用連結到任何 shader 喔!
  11. ------------------
  12. 將 layer1, layer2 ,layer3 都選取起來
  13. 取消所有物體的選取
  14. 依序選取 高多邊形物體,低多邊形物體
  15. 在 Compositing layout 中,看向 Properties 視窗,展開 Bake panel
  16. Bake Type:選 Normal
  17. Space:預設是 Tangent
  18. Swizzle:預設是 +X,+Y,+Z
  19. 勾選 Selected to Active,之後按下 Bake 按鈕
  20. Ray Distance 則是要反覆測試 0.0, 0.1, 0.03, ...... 直到 UV/Image Editor 中的圖,顏色對了,就可以另存新檔。
  21. 之後這個 normal_map.png 就可以使用在 低多邊形物體上面 囉
    1. Image Texture 選取此 png
    2. Image Texture (Color) → (Color) Normal Map
    3. Normal Map (Normal) → (Normal) Diffuse BSDF