Tuesday, September 18, 2012

#i2310 Computer Animation. GTA IV Animations


Game overview:
Grand theft auto IV is an open world action adventure game where the player has very little restrictions to what he or she can do. The game is very addictive and continues to be so after you have completed the single player mode, by offering a wide array of multiplayer game modes. 

Grand thief Auto IV’s animated world:
The islands of liberty city are quite spectacular. The streets are filled with people interacting with each other, for instance, people wait to cross the road, visit a park, or converse with each other on the street. Cars are everywhere, canals are filled with boats and the player can barely see the sky through the crowded airspace.  Fast food restaurants are filled with hungry people. Bill boards are playing the latest cosmetic’s commercial as people blankly stare at them. The trees sway gently in calm weather, and more vigorously in stormy weather, even the lights emitted by buildings are animated at night.
Creating a world as alive as Grand thief auto is a monumental task as there are hundreds upon hundreds of objects that have to be animated for gameplay and cut scenes.  In addition to all the scripted animations there are also dynamic animations that add to the work load. All of the game’s animations, both the scripted and dynamic ones, must look convincing and realistic. This would most easily be done through motion capture. However dynamic animations are just that, dynamic, and must be calculated in real time instead.

Skeletal animation:
Most of the animations in GTA IV are implemented through a skeleton structure that is animated through the use of key frames that compose an animation. A skeleton is a set of bones arranged in a tree hierarchy; bones are connected to a group of vertices around it, which all move in tangent with the bone segment. The bone segments are arranged into a static state that forms one key frame. With a list of key frames, the skeleton can begin to interpolate between frames, smoothly animating between them. This causes the skeleton to move smoothly to the animator’s discretion. As the skeleton moves, the sections of the model’s mesh move in tangent with the bone segments that they are attached to. This creates the final animation that you see in game. With a skeletal animation system, it’s easier to create new animations because the animators don’t have to micro-manage every vertex when creating a new animation, but rather just a handful of skeletal points. Some of the key frame animations include: watering flowers, cleaning the streets, exercising in the parks, walking, running, sitting, talking etc. In addition GTA IV takes advantage of the skeletal system to adopt dynamic animations.
 
Dynamic animation:
GTA IV has dynamic animations present in every frame from the turning heads of the liberty city folks to the dynamic reactions when they have a force act on them. The dynamic animations are created from a set of algorithms that make a animation starts. This animation is achieved by plotting the curves then moving the skeleton structure to follow its path. Some of these dynamic animations are layered with another fixed animation as well. For an example a model of a person was talking to another I happened to honk my horn at them to my surprise the person continued to display the talking animation while simultaneously moved his head towards me. This is also seen when you push a person while he is walking, his torso moves to orient his arms against the force, protecting him, while his legs continue to walk.

Static Animations:
There are some simple animations on static models like trees and buildings. The trees sway with the wind and increase in intensity when the wind increases its intensity.  I think this was done by adding in a coefficient to the normal sway animation which would influence its movement. The buildings are animated in some ways as well, specifically, various windows on the side of a building light up once the sun goes down. The buildings can be achieved by blending two textures one with the windows lights on one without.

Conclusion:
GTA IV is a very addictive and fun experience that is strengthened by the animated surrounds making you feel as if you were in an actual city. GTA IV is a game that surely set the bar in 2008 for realism through animation.