arnold for maya设置per-light AOVs和per-Shadow AOVs

Maya119 字

[scode type="yellow"]此方向适用于arnold 4及以前版本。使用前先安装alshader![/scode]

### 1.添加per-light AOVs

渲染设置中的AOVs里根据灯光数量创建多个light_group AOV
![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479320371716064.png)
给每灯光的Shape节点添加属性:

```
mtoa_constant_lightGroup
```

![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479320383883925.png)
给各灯光的Mtoa Constant Light Group设置不同ID号
![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479320862807478.png)

### 2:添加per-shadow AOVs

渲染设置中的AOVs里根据灯光数量创建多个shadow_group AOV
![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479321053224612.png)
给每灯光的Shape节点添加属性:

```
mtoa_constant_shadowGroup
```

![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479321158638102.png)
给各灯光的Mtoa Constant Shadow Group设置不同ID号
![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479321230551809.png)

### 实例场景灯光效果

![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479321387147647.png)
per-light AOVs:
![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479323298833934.jpg)
per-shadow AOVs:
![](https://aduvfx-1252404142.cos.ap-beijing.myqcloud.com/ueditor/php/upload/image/20161117/1479323380714348.jpg)

### 实例文件下载:

此处内容需要评论回复后(审核通过)方可阅读。

admin
博学之,审问之,慎思之,明辨之,笃行之。
OωO
开启隐私评论,您的评论仅作者和评论双方可见
评论 ( 7 )
  1. ddddd

    b vxng

    2021年04月27日回复
  2. 珂珂

    请问为什么添加per-light AOVs和添加per-shadow AOVs属性时,default的值分别是1和0

    2017年08月30日回复
    1. duchengbin 博主大人
      @珂珂

      默认值可以随意,最好默认为0,也就是没有分ID的状态 (๑ó﹏ò๑)

      2017年08月30日回复
  3. Bubber

    Oh they knew! When a cop asked them what was going on, the guy looked around and told them. We were sitting right there and he mentioned Improv Evhrrweeye. Soon as I heard the cop ask him what was going on…I waited to hear what he was gonna say. I’m just a little nosy like that I guess. ;)

    2017年01月24日回复
  4. 今天真冷,哈哈!

    2016年12月13日回复
  5. LiberioHan

    已下,谢谢回复与交流

    2016年11月28日回复
  6. 你的博客就像冬天里的一把火!

    2016年11月17日回复