共 49 篇文章 |
|
houdini下3delight surface shader R2000警告3DL WARNING R2000: object ''param'' (displacement ''....'', surface ''...'') has no displacement bound but was displaced by ''....'' (in eye space)例子:3DL WARNING R2000: object ''/obj/grid_object1'... 阅47 转0 评0 公众公开 13-07-23 18:16 |
float i, x)设置x,y,z或者第i个元素的值float length(vector V / normal V)float distance(point P0, P1)float ptlined(Point P0, P1, Q)返回从Q到由P0P1组成的线上最近的一点的距离vector reflect(vector I, N)对于入射角I以及表面法线N,返回一个反射方向R = I - 2 * (N.I) * N注意,N必须做过标准化了。float myfunc(float f){ float ... 阅42 转0 评0 公众公开 13-05-31 16:12 |
Rman中的坐标系camera space: 默认的初始坐标系,+z轴伸向相机前方,+x轴指向左边,+y轴指向上方(左手坐标系)当Projection被调用时,camera space就被创建了,在此时,当前的transformation matrix被设置为indentity。从此时开始,到WorldEnd为止,对当前transformation matrix的改变创建的都是与world space相关的坐标系,即,矩阵从local坐... 阅62 转0 评0 公众公开 13-05-22 18:37 |
Class 21 Other Kinds of Shader 02Lighting Shaders:除了控制surface的表现之外,我们也可以用shader控制场景中的灯光。surface shader的任务是计算物体表面的颜色,而light shader的任务则是决定一个点上接收多少光源。 阅25 转0 评0 公众公开 13-04-12 18:40 |
Class 3 lightingpointlight: 有光源位置,无方向(oritation),有参数“from”,按照inverse square law(反向平方率)——没当光源距离变为两倍,光线亮度就衰减到1/4 。distantlight:有方向,无光源位置,有参数“to”,只代表一个vector,不代表指向的点spotlight:有光源位置,有方向,有参数“from”和“to”,以及“coneangle”和"... 阅60 转0 评0 公众公开 13-04-02 17:29 |
ubuntu下编译安装pixie编译安装fltk:./configure --bindir=/usr/bin --libdir=/usr/lib --includedir=/usr/include --prefix=/usr --enable-sharedmakemake install编译安装pixie:./configure --prefix=~/Pixie --enable-selfcontainedmakemake install. 阅79 转0 评0 公众公开 13-04-01 16:52 |