下载 / Download

/// Procedure Name : tgReflectionRay.mel V1.1.0
/// Updated : 15th. Jan. 2008
/// Author : T.G.Jay
/// All Rights Reserved .

 

工具名称:Polygon Reflection Ray
版本:1.1.0

>>>实现功能:

通过指定物体的高光点反求出光位和光照方向。

 

>>>工具介绍:

利用一次光线追踪(Primary Raytracing)算法获得高光位。
换而言之,如果用户在反求出的位置放置灯光,方向朝向指定点,且无阻碍物,
用户必然在指定点的位置得到高光。
此工具尤其适合工业产品灯光布置。

 

>>>使用方法:

1. 选择polygon上需要出现高光点的vertex;

2. source脚本并输入tgReflectoinRay,出现如下界面;

3. 选择渲染摄像机,输入光位与vertex的间距;
4. 按Generate或者Apply执行mel。

 

>>>技术细节:

脚本执行后,产生两个Locator。
sourceLocator表示用户指定的高光点的位置;
targetLocator表示程序生成的光位。

下图中的spotLight通过point和aim约束到两个Locator

渲染出的结果:高光点正好落在用户指定的点上。

 

Copyright T.G.Jay © 2004-2006. All rights reserved.