Download CHAPTER 1 - Computer Graphics and Visualization
Transcript
Design Documents B.1.3 Scripts Script AVAirplane Object HumanClient AVCabinLight4 AVCloud Cabin Clouds AVEnvirontment Environment AVFlightControl HumanClient AVGround Ground AVLastClientControl AVLastEnvControl HumanClient, HumanServer HumanServer Universe Shutdown Script Universe StartUp Script procedure Panorama AVLastServerControl AVLastShutdown AVLastStartup AVLoadAvatarsMan AVPanorama AVPing AVServerFlightControl The Active Child action from object: SignSwitch HumanServer AVShow_avatas Avatar 1 – 30 4 Function This script calculates the behavior of the airplane based on the thrust, roll and angle of attack To handle the Cabin Light (On/Off) This scipt deletes clouds behind the airplane and places new ones in front of the plane This script handles the content of the background panorama and transmitions from clouded to fair etc. This script triggers the events in sequence in the virtual world. Based on the flight status, it triggers sounds and sets the thrust, angle of attack and roll of the airplane This script handles the display of the ground by showing only n by n gridelements at a time. The textures for the elements are loaded in runtime from the grid directory To control client To control the environment To Control Server Shutdown script Startup script Procedure to load avatars To show the background sky and ground, a polygon is placed in front of the user's viewpoint at a large distance and the texture on this polygon is changed to show the part of the background the user is looking at. This script both positions this object and changes it's texture To play the sound 'ping' when fasten seatbelt sign on/off This script synchronises the behavior of the airplance on the client computer with that on the server computer Modified or new scripts are the scripts in cursief 61