| Dev Diary #12 |
| Written by André Blechschmidt | |
| Friday, 13 July 2007 | |
Drakensang – Official Dev Diary #1210. 08. 2007: The CameraToday's entry is somewhat more technical than previous entries. Technical director André Weißflog was responsible for camera control and camera behaviour. Today he's reporting about its design and conversion within the game. Camera ControlWhile pressing the right mouse button, you can rotate the camera horizontally and vertically around the current center of interest. The bottom line is fixed so that the player can take a closer look at details that are above the horizontal line. Using the mouse wheel you can zoom to the center of interest in three steps (near, standard, far) unless the camera collides with environment. The grade of distance might vary from indoor to outdoor levels (balancing, testing). During cutscenes and several other occasions (e. g. open inventory) the camera perspective is not variable. Camera BehaviourThese are the basic requirements for the camera behaviour:
Camera ModesThe camera implements two different patterns of behaviour that are changed automatically. The player has no option to switch manually between these modes. The change results indirectly from the position of the group leader directed by the player in relation to the camera. Resting Mode is active when the leader of the group does not move. In this mode the camera tries to hold position and keep the leader in focus. Depending on the distance (between the leader and the camera), there is an area within the screen where the character will be tolerated to move without the camera changing perspective. If the character leaves that area, the camera follows without changing it's position. Because of this smooth beaviour the player doesn't have to reorientate all the time because of the camera changing position and perspective. Instead he can give instructions to the leading character via mouse click, just like a strategic simulation. This puts more emphasis on the aspect of an adventuring group than would a camera bound to the leading character (e. g. Knights of the Old Republic -ed). If the player changes the lead character, the camera makes the smallest adjustment necessary to bring the new leader into focus. Depending on the distance of the new leader to the former leader, the camera does not change, does a pan without changing direction, a pan with changing direction or an immediate shift towards the new leader (that happens e.g. if there is no free line of sight towards the new leader). The camera leaves resting mode when the leader reaches a particular distance to the camera or when the player uses the keyboard to move the lead character. The camera then switched to Follow Mode. Once activated, Follow Mode remains active until the leader stops. When the Follow Mode gets activated, the camera is directed behind the leading character - in a zoom level as already set - and keeps that direction, i.e. in direction of movement (nevertheless the player has the option to adjust the direction of the camera to take a look around while moving). The All movements of the camera become directed through so called feedback loops. That results in an overall consistent camera behaviour that slows down when you reach your destination. Thus the camera movement is less rigid and mechanical, as well as more fluent and smoother.
- Written by André Blechschmidt, Technical director at Radon Labs - |