Logics

Interpolator Integer

Instruction:
使Statue產生Texture自動變化的效果,且Statue保持旋轉的狀態。

Building Blocks
(a) Key Event-Controllers/Keyboard/Key Event
(b) Bezier Progression-Logics/Loops/Bezier Progression
(c) Interpolator-Logics/Interpolator/Interpolator
(d) Set Current Slot-Materials-Textures/Basic/Set Current Slot
(e) Rotate-3D Transformations/Basic/Rotate
(f) Set As Active Camera-Cameras/Montage/Set As Active Camera
(g) Text Display-Interface/Text/Text Display

製作構想
利用Building Blocks-Translate產生位移,並配合Bezier Progression使Ball產生變速度與變方向的效果。

製作步驟
(a) Statue
 
首先於Level Manager/Default Level/Global/Textures/Statue/Texture Setup-Add Texture增加欲選擇的Textures(如圖示)。

Key Event:設定當按下控制鍵'0'時傳遞出訊息。
Progression:設定Duration-表示顏色變化持續執行的時間;設定A、B值-表示Bezier-interpolated的最大與最小值。
Bezier 調整變化曲線Progression Curve (如圖示)。
利用由pOut輸出的變數值Value(介於0~1)作為Building Blocks-Interpolator的內插值。
註:Progression Curve曲線斜率愈大表示Texture變化愈快;反之斜率愈小表示Textures變化愈慢;斜率不變表示Textures變化速率相等(如圖示)。

Interpolator:首先設定Edit Parameter/Parameter Type-Integer,C值為輸出值可以忽略不必設定(如圖示)。
設定A、B值即Texture變化的初始以及最終值(例如:A=0, B=5;則C=0時顯示第一張Texture,變化至C=3時顯示第四張Texture,C=4時不顯示Texture,然後跳回C=0再重新開始一直作無窮迴圈)。
由pIn輸入變數Value作為內插值(其內插值變化介於值A與B之間),再由pOut輸出變數Integer。

Set Current Slot:設定使用目標Target(Texture)-Statue;由pIn輸入Slot Index (本範例中四張Texture分別於C=0~3時顯示)。
 
(b) Statue

Rotate:設定Axis of Rotation-Y軸(0, 1, 0);設定Angle of Rotation旋轉角度值Degree-0.2;設定Referential of the Axis-'-NULL-'或'Statue'皆可。
勾選Hierarchy表示Building Blocks同樣應用在Child。
 
(c) Camera

Set As Active Camera:設定現在所使用的Camera。 Text Display:文字說明。

愛迪斯科技股份有限公司版權所有,本網站各連結標題,商標及連結內容歸原權利人所有.
台北市內湖區民權東路六段16011樓之
2 Tel:(02)2791-2917 Fax:(02)2791-2916
CopyRight 2001-2002 Axis 3D Technology,inc. All rights reserved.