查看: 1805|回复: 0
打印 上一主题 下一主题

如何使用纹理法线映射贴图

[复制链接]

1602

主题

1

听众

2万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
24658
精华
6

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2012-2-22 11:09:06 |只看该作者 |倒序浏览
如何使用纹理法线映射贴图


Normal maps are grayscale images that you use as a height map on your objects in order to give an appearance of raised or recessed surfaces. Assuming you have a model that looks like this:
  







The 3D Model   

The Texture

We want to make the light parts of the object appear raised.
  

Draw a grayscale height map of your texture in photoshop. White is high, black is low. Something like this:
   



Save the image next to your main texture.

In Unity, select the image and select the 24 bit RGB format and enable Generate Normal Map in the Import Settings in the Inspector:


  

In the Material Inspector of your model, select 'Bumped Diffuse' from the Shader drop-down:
   



Drag your texture from the Project window to the 'Normalmap' texture slot:


Your object now has a normal map applied:
     

Hints

To make the bumps more noticable, either use the Bumpyness slider in the Texture Import Settings or blur the texture in Photoshop. Experiment with both approaches to get a feel for it.



由www.J2meGame.com精心收集。

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-2-24 15:20 , Processed in 0.066635 second(s), 31 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部