Method for realizing man-machine interaction on three-dimensional animation engine lower layer
暂无分享,去创建一个
The invention discloses a method for realizing man-machine interaction on a three-dimensional animation engine lower layer. The method includes the steps: uniformly packaging pickup, translation, rotation and scaling operation by the aid of an event processing object to respectively form event response functions; defining working states, corresponding to different types of operation and the event response functions, of the event processing object by the aid of enumerative variables based on a finite-state machine; and receiving an interactive event triggered by a user, leading the finite-state machine to skip to the working state corresponding to interactive event and executing the corresponding event response function. A man-machine interaction function for roles in a scene can be realized by means of simple management of the finite-state machine, and difficulty in designing the lower layer for man-machine interaction in the three-dimensional engine design is simplified.