亚洲AV日韩AV无码污污网站_亚洲欧美国产精品久久久久久久_欧美日韩一区二区视频不卡_丰满无码人妻束缚无码区_久爱WWW成人网免费视频


首頁 -> 登錄 -> 注冊 -> 回復(fù)主題 -> 發(fā)表主題
光行天下 -> LightTools -> Bezier蒙皮 [點此返回論壇查看本帖完整版本] [打印本頁]

qazxew 2012-12-11 14:40

Bezier蒙皮

在LightTools里面,可以建立Bézier的反射器或透鏡之類的。同時可以對Height ,F(xiàn)ront size,Rear size:,Size,Position,Wight:等參數(shù)進行優(yōu)化,以達到最理想的效果,但如何將這條設(shè)計好的曲線化成公式 U'pm5Mc\q  
二次貝塞爾方程的表達式為 $rB20!  
B(t)=(1-t) 2P0+2(1-t)tP1+t2P2  T<0,1> aZ$$a+  
在LightTools里面,三個點P0,P1,P2的坐標(biāo)都可以通過Height ,F(xiàn)ront size,Rear size:,Size,Position的參數(shù)而確定 但weight這個參數(shù)應(yīng)該怎樣理解呢? rT說明書上有這樣說 *wNX<R.  
Weight - Allows you to adjust how closely the curve conforms to the control polygon. Increasing the weight pulls the curve toward the control polygon; decreasing the weight pushes the curve away from that polygon. The valid range for this value is > 0 and # 1. /?POIn+0o  
但怎樣把weight這個參量在公式上表現(xiàn)出來呢 G;:D6\  
等待大俠們意見
piggyhud 2012-12-12 15:15
Lighttools 雖然在軟件界面上寫的是Bezier Curve,實際上用的是NURBS。所以公式如下:假設(shè)w2=weight(即你在軟件界面中的Weight項所填),則w1=w3=(1- w2 )/2。則對于0<t<1有,設(shè) M(t)=((1-t)^2 )* P0 * w1 + 2 * t  * (1-t) * P1 * w2+ (t ^ 2) * P2 * w3  , 且設(shè) N(t) =((1-t)^2 )* w1 + 2 * t  * (1-t) * w2+ (t ^ 2) *  w3  , 則最后曲線的參數(shù)方程表示為B(t)= M(t) / N(t) 。另外對于 t=0 , B(t) = P0 ;對于 t=1 ,B(t) = P2 。
查看本帖完整版本: [-- Bezier蒙皮 --] [-- top --]

Copyright © 2005-2025 光行天下 蜀ICP備06003254號-1 網(wǎng)站統(tǒng)計