maya渲染网格方法之一

喜欢aboutcg图文教学吗?支持我们吧!点击进入AboutCG赞助通道. 有了您的帮助,我们能做得更多!

0067_Render_Wireframe_Banner

This tutorial will show you how to create a shader that will render a wireframe of your model and not render the backfacing wireframes. Before following the steps below, unwrap your mesh.

1. Take a snapshot of your UVs.

输出UV快照

2. Create a shader node of your choice (I used a lambert).

基于你的喜好创建一个shader

3. Create a Condition node (under General Utilities).

创建一个condition节点

4. Create a Sampler Info node (under General Utilities).

创建一个Sampler Info节点

5. Create a 2D File Texture node and load your UV snapshot as the file.

将UV快照导入

6. Create a Ramp node, and delete all colors but one.

创建一个Ramp节点,只留下一个颜色。

7. Change the remaining ramp color to either black or white (you may need to change this later).

将Ramp节点的颜色调成白色或者黑色。

8. Connect the outColor attribute of the UV file texture to the colorIfTrue attribute of the Condition node.

将UV快照文件的outColor属性连接到Condition节点的colorIfTrue属性。

9. Connect the outcolor attribute of the Ramp node to the colorIfFalse attribute of the Condition node.

将Ramp的outColor属性连接到Condition节点的colorIfFalse属性。

10. Connect the flippedNormal attribute of the Sampler Info node to the firstTerm attribute of the Condition node.

将Sampler Info节点的flippedNormal属性连接到Condition节点的firstTerm属性(好像在做双面材质啊)

11. Connect the outColor attribute of the Condition node to the transparency attribute of the shader node.

将Condition节点的outColor属性添加到创建的shader的transparency(透明度)属性。

You may need to use a Reverse node between the UV file texture and the Condition node to make it work correctly. Reverse nodes are pretty simple: they have an input and an output. All they do is invert the colors of a color node. For the same reason, you may need to change the ramp node from white to black, or vice-a-versa.

你也许要在UV file texture和Condition之间添加到一个Reverse节点,可能是你的操作正确,Reverse节点是简单的,只有一个输入和输出节点,用来转换颜色。处于同意原因,你要将Ramp的颜色又黑色改为白色,或者反过来。

Also, you may need to attach the outColor of the UV file texture to the colorIfFalse attribute of the Condition node, INSTEAD of the colorIfTrue attribute (in step 8).

也许你要将UV file的outColor连接到Condition的colorIfFalse属性(第八步)

如果你喜欢这样的教学,请订阅吧--> 点击AboutCG的 RSS feed!

发表留言


评论功能说明

  • Gravatars已经激活。
  • 超链接自动分析功能已激活。
  • <em>斜体字</em>
  • <strong>加粗字</strong>

注意:本站原创图文教程均为网友或者队员原创,版权为网站和原创者所有。
             翻译教学则来自互联网教学,版权归原作者所有,翻译版权归本站所有。
             转载请注明原作者及本站出处, 谢谢!

Adobe Reader之logo以及名称为Adobe公司的注册商标