Virtools学习(二)—The Behavioral Engine

The Behavioral Engine - CK2
The Behavioral Engine implements behavioral processing and is the central component of Virtools. Also known as CK2 (hence the CK references you often see in the interface, such as CKID, CKClass and so on), the Behavioral Engine is what makes Virtools so flexible.

What does CK2 do? CK2 executes your compositions, processing Scenes and managing all interactions between the User and the elements of your composition. CK2 also processes the elements of your composition that have behaviors applied to them ?that is, the Behavioral Objects.

Once all behaviors have been processed for a given frame, CK2 provides the appropriate information to the render engine (CK2_3D) so that the results of the interactivity can be displayed to the User.

NOTE The Level is always active and is the highest priority element in every frame. All currently inactive elements are ignored in the remaining tasks.

Processing continues in the current frame until all BBs are processed or the link delay is greater than 0.

When all behavioral processing is complete, CK2 provides information to the rendering engine to draw an image on screen, the image is rendered, any link delays that are greater than 0 are reduced by 1, and behavioral processing starts again.

You can watch behavioral processing in action by activating Trace mode in the Schematic. When the composition is played, the sequence of activations and BB processing are highlighted in red in the Schematic.


 

posted on 2007-09-22 15:47  达则兼济天下  阅读(481)  评论(0编辑  收藏  举报