The Unity 3D Engine: Building Interactive Scenes Using GameObjectsUnity is a powerful development tool that can be used to create interactive 3D scenes quickly and effectively. Unity uses the rendering pipeline to display graphics and in this report I will describe the stages of the display/rendering pipeline and attempt to explain how transformations within Unity are computed and displayed to the user. The visualization pipeline is the name given to the steps involved in displaying a 3D scene as a 2D raster representation. The visualization pipeline uses 3D polygon rendering to calculate the necessary pixel values, 3D polygon rendering involves calculating the color and lighting of all the polygons in the camera view and then each surface generates a ray that is fed back to the camera. The stages of the visualization pipeline are as follows: 3D geometric primitives: The scene is created from geometric primitives. Triangles are usually used to achieve this since they exist in one plane. Modeling and Transformation: Local coordinates are converted to 3D world coordinates, this is where transformations made in units are taken into account. Camera transformation: The coordinate system of the 3D world is transformed into the coordinate system of the 3D camera, using the camera position as the point (0, 0, 0). Lighting: The scene is illuminated using newly calculated illumination and reflectance values. Projection transformation: 3D world coordinates are transformed into the 2D camera view, to calculate the perspective dimensions of objects at different distances from the camera, the X and Y coordinates of each vertex must be divided by the Z coordinate of its primitive. Clipping: All primitives that are......center of paper ......cause a game object to move at high speed along the player's camera direction vector. In addition to movement, the projectile would have to collide with other objects in the game, which usually means a collision detection function would have to be written. However, for the purpose of simply stopping the projectile when it collides, Unity has incorporated physical components that can be attached to the projectile game object in the inspector panel as a rigid body. Unity contains many components, the rigid body component allows game objects to be affected by physical forces such as gravity or wind. Unity also comes with built-in character controller components that offer basic functionality for various game types such as first-person shooters. These basic components give you the opportunity to develop them using additional scripts to save the time needed to create them from scratch.
tags