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