Logics

Per Second

Instruction:
本範例中的兩個Boxes分別由不同的方式控制使其產生轉動,均可以控制其轉動速度、旋轉的軸向等。

Building Blocks
(a) Set As Active Camera-Cameras/Montage/Set As Active Camera
(b) Text Display-Interface/Text/Text Display
(c) Switch On Key-Controllers/Keyboard/Switch On Key
(d) Rotate-3D Transformations/Basic/Rotate
(e) Deactivate Script-Narratives/Script Management/Deactivate Script
(f) Activate Script-Narratives/Script Management/Activate Script
(g) Per Second-Logics/Calculator/Per Second

製作構想
利用Building Blocks-Deactivate Script和Activate Script來選擇Box;再使用Building Blocks-Rotate,或是Per Second配合Rotate使Boxes產生旋轉的效果。

製作步驟
(a) Camera

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

Switch On Key:設定控制鍵分別為'8'、'2'、'4'、'6'。
Rotate:設定旋轉軸Axis of Rotation-分別為X軸(1, 0, 0)、-X軸(-1, 0, 0)、Y軸(0, 1, 0)、-Y軸(0, -1, 0);設定旋轉角度值Angle of Rotation(Turn:圈數、Degree:角度);設定Referential of the Axis-設定'-NULL-'或'Box02'均可(如圖示);勾選Hierarchy表示Building Blocks也同樣應用在Child。
 
(c) Box01 & Box02

Switch On Key:設定控制鍵分別為'Del'、'0'。
Deactivate Script:當按下控制鍵'Del'時中斷Script-Box02 Script,按下控制鍵'0'時同理。
Activate Script:當按下控制鍵'Del'時啟動Script-Box01 Script,勾選True表示Script會執行Reset,不勾選表示Script會依照原來的狀態,例如Deactivate狀態,按下控制鍵'0'時同理。
 
(d) Box01

Switch On Key:設定控制鍵分別為'8'、'2'、'4'、'6'。
T X(pIn) * Elapsed Time = Y(pOut) Rotate:設定旋轉軸Axis of Rotation-分別為X軸(1, 0, 0)、-X軸(-1, 0, 0)、Y軸(0, 1, 0)、-Y軸(0, -1, 0);且由pIn輸入旋轉角度值Angle of Rotation(Turn:圈數、Degree:角度);設定Referential of the Axis-設定'-NULL-'或'Box01'均可(如圖示);勾選Hierarchy表示Building Blocks也同樣應用在Child。
Per second:設定1秒鐘所旋轉的角度值X(Turn:圈數;Degree:角度),乘上一個Frame所花費時間,在pOut輸出變數Y (旋轉角度值)。

 


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