MAYA中烘培AO和SpecularMap的脚本

 


本教学由北欧之尘原创,转载请注明作者和出处。

最近写了个maya的小脚本.用来简化烘培 基于NormalMap的 全局阴影贴图 和 高光贴图.

有一段视频演示: http://vimeo.com/6292850

01

02

下载: http://rapidshare.com/files/27201619…seBakeTool.zip

您也可以点击这里下载NormalMap base AO Baking Tool 脚本1.0版本

说明:

//NormalMap base AO Baking Tool V0.1
NormalMap base AO Baking Tool 脚本1.0版本

//Create by Aaron Fang 2009.08.23
由Aaron Fang (北欧之尘)于2009年8月23日创建

//fangzheng003@gmail.com
作者邮件:fangzheng003@gmail.com

//-DESCRIPTION:
说明:

//This script can help to bake AO map base on normalmap details. It is a step by step workflow. Just follow the 1,2,3…and you will done.
本脚本可以基于Normal Map的细节烘陪AO map ,这是一个逐步讲解的工作流程,只要按照1,2,3 这么跟着做,你就搞定了。

//-HELP:
帮助:

//Bake AO map
烘陪AO map

//1, Create Ground Plane: creates a polygen plane with white lembert shader applied on. Normally for ground plane. You can create more for specfiic environment.
1,创建Ground Plane,首先创建一个赋予白色lembert 材质的多边形平面。

//2, Select Main Geometry: Select the geometry you want to bake. select more than one mesh will couse more shader be created.
2,选择主要模型:选择你想要烘陪的模型,选择超过一个的物体将会导致更多的Shader被创建出来。

//3, Select NormalMap File: pick the normalmap you want to apply to the main geometry.
3,选择NormalMap 文件,选择你想要赋给主要模型的normalmap贴图。

//4, Create Shader with selectd normalmap: create a lembert shader with selected normalmap and adjust color and diffuse parameter.
4,使用选择的normalmap创建Shader,建立一个 包含之前选中的normalmap 的lembert shader 材质,调解颜色与diffuse 参数。

//5, Set mrRenderGlobal: “Load MentralRay Plugin” button will load Mayatomr plugin if didn’t loaded.
5,设置mrRenderGlobal:如果尚未调出渲染器,点击“Load MentralRay Plugin”按钮将会调出Mayatomr plugin 插件,来启动MR渲染器。

// “Set RenderGlobal” button will set mentalray render global ready for final gathering automatically.
“Set RenderGlobal”将会自动地设置好mentalray的全局渲染设置。

//6, Preview Render: preview render if all settings are works before start baking.
6,预览渲染成果:在正式烘陪之前,请预览渲染结果。

//7, Bake to Texture AO: open up the mr batch bake option window. for now you will set parameter manually. you can follow the “Key Settings”, and it is ready to bake.
7,将结果烘陪成AE贴图:打开mr批处理选项窗口,现在你需要手动地设置参数,你可以参考”Key Settings”, 选项,现在你已经准备好烘陪了。

//Bake Spec map
烘陪Spec map

//almost same with bake AO map. Instead of create a polyPlane, it will create 4 direct lights for baking specular.
几乎与烘陪AO贴图的流程一样,不过这次不是创建一个多边形平面,而是需要创建4盏direct lights 用于烘陪specular贴图.

//-INSTALLATION:
//1, Copy af_normAOBake.mel to your script directory.
//2, run maya. execute “source af_normAOBake.mel”.
//DONE!

安装方式:
1,将af_normAOBake.mel复制到你的 script 文件夹
2,运行Maya,在命令行运行”source af_normAOBake.mel”.调出Mel。
搞定了!



有问题可以参与答疑

6回复MAYA中烘培AO和SpecularMap的脚本"

  1. 王贵革说道:

    貌似下载不了了、视频地址也没了。

  2. Lanmoran说道:

    貌似下载不了了、视频地址也没了。

留下信息

电子邮件地址不会被公开。 必填项已用*标注