返學費網(wǎng) > 培訓機構(gòu) > 杭州春華教育
動設置MAYA燈光亮度01、許多人對于如何調(diào)節(jié)燈光亮度感到迷惑,我就是其中之一,特別是當燈光設置了衰減之后,往往是調(diào)一下亮度,渲染……祈禱……太亮……再調(diào)……再祈禱……太暗……太亮……痛苦…… 下面做的這個連接希望能夠幫上一點忙。
1、 建一個聚光燈,并將其設為二次方衰減。這是最常用的燈光。其它的也以此類推。Create->lights->spot light..
02、 建一個尺子。Create->measure->distance tool..按住x鍵,將第一個locater捕捉到圓點,另一個放置在燈光前,如圖。
03、 下面將燈光和尺子工具連接起來:選擇第1個locater,再選擇spot light,按p,將這個locater作為spot light的子物體。移動燈光,發(fā)現(xiàn)尺子工具隨之移動,但燈光并不指向第2個locater。
4、 選擇第2個locater,再選擇spot light,切換到animation菜單設置。Constrain->aim->options。
05將aim vector 改成0,0,-1。
按下add/remove。
這是移動燈光,發(fā)現(xiàn)第1個locater跟隨燈光移動,而燈光總是瞄準第2個locater,而尺子顯示的數(shù)據(jù)不斷地變化。
06、打開hypergraph。按住shift,選擇spot light和distance dimension,顯示其上下游節(jié)點。
07、 打開hypershade,從hypergraph中將spotLightShape1和distanceDimentionShape1用中鍵拖入hypershade工作區(qū)中。
08、 打開hypershade。再創(chuàng)建如下幾個節(jié)點:兩個multiply divide節(jié)點、一個ramp texture節(jié)點。
09用中鍵將distanceDimentionShape1拖到multiply divede1上。選擇other,開啟connection editor。在左邊選擇distance,右邊選擇input1X 打開multiply divide的屬性。設置operation為power。Input2X為2(如果是三次方衰減則設為3)。
10、 設置ramp紋理,將其顏色設為h0,s0,v1,無漸變。
11、 用中鍵將ramp拖到multi divide2上。選擇other。左邊選擇outAlpha,右邊選擇input2X。
12、用中鍵將multiply divide1拖到multi divide2上,選擇other。左邊選擇outputX,右邊選擇input1X。
13、打開multiply divide2的屬性,設置operation為multiply。
14、用中鍵將multiply divide2拖到spotLightShape節(jié)點上,選擇other。左邊選擇outputX,右邊選擇intensity。
15、這樣隨著燈光位置和目標點的位置不同,燈光亮度被自動調(diào)節(jié),如果想更亮或者更暗,更改ramp texture的顏色v值就可以了。