MIGS, the Montreal International Gaming Summit, has been an excellent learning experience and a really fun time. I've learned quite a bit from top industry professionals such as Ray Muzyka, James Everett, Ian Frazier, and Alex Epstein. More over, getting to know a lot of the people in the industry and talking to different company representatives has been an excellent learning experience. But what I'm really here to talk about is what I learned at MIGS that applies to our Game Engine Architecture class and Iron Heart, my in development game for UOIT.
James Everett, a game designer at Ubisoft Toronto, had a fantastic presentation called "The Evolution of Sam Fisher, Character, Camera & Controls in Splinter Cell BlackList". What I found so interesting from this presentation was how the designers were able to take the concepts that worked from previous installments and improve them. This applies to my game engine architecture because of how critical camera systems were in the development of Splinter Cell Blacklist, not just for design decisions, but for programming ones as well. Here is what I learned at James' MIGS presentation and how it can relate to my Game Development Workshop game Iron Heart
Guns and Camera
An interesting aspect of guns is how they can affect camera and subsequently game play. For a game like Iron Heart which is a tank arena game where the camera is from a third person perspective, how can the tank guns effect the camera? A few things would be:
- When we fire any of the tank guns, accuracy reduces.
- When moving, accuracy reduces.
- Even when being hit, accuracy can be reduced.
Many games features these, but how can things like these be programmed in? And how would the affect the overall design of the game, for better or for worse? Well the designers at Ubisoft had a rather modular idea that eases implementation of those, and is easy to understand the theory of.
.
Whenever firing a tank gun, all we have to do is change the X,Y camera orientation in same way. We can set a min/max orientation for vertical and horizontal orientation and whenever we fire a particular gun, we can change the orientation. This is where polymorphism really stands out because we can have a base class Weapon with four floats representing the min/max values of the horizontal or vertical orientation. All we need to do is call a function from a certain gun object when fired that changed the orientation for us. We would also need a float value for the neutral state (the most accurate state) and a settle value, the value in which the orientation offset reduced back to neutral.
Another method is when moving. For this, we can use the same min/max orientation values and they their movement will be determined by how fast the vehicle is moving and if at any point the vehicle is either turning or moving up or down on the Y axis. When being hit, the accuracy can be again be played with depending on damage done and what kind of attack (an explosion might result in greater accuracy.
As mentioned with polymorphism, all we need is a Weapon with orientation values and when the weapon fire function is called, it simply relay's those floats to a camera and we can change the orientation. While this would require a lot of testing to make sure we strike the right balance of realism and fun, it can be rewarding in the end as it can offer sufficient challenge to the player.
Lastly, a benefit of this is that the programmer can simply write a system that allows the designer to write in the orientation changes in a text document. These changes will then be updated live to the testing version of the game so that they can tweak guns to make them feel just right. This form of communication between different specialties of game development can help speed up the process greatly, and ease a lot of stress off designers.
Camera's for enemies
Another very useful way of using camera's to help the player is by using ray casting on nearby enemies to help the player aim their weapon. In Splinter Cell Blacklist, the camera uses ray casting so that if an enemy is near your targeting ridicule, then the ridicule will auto-focus on that enemies center of mass. If the enemy however is moving very quickly, your characters gun will lose focus. For a tank game that takes place in large arena's this could be very useful for trying to hit enemies and medium to long range.
To achieve this technique, we need the camera to cast a ray in which ever direction it is facing. When the larger collision box of an enemy intersects with the casted ray, then we can try to auto-focus the ridicule to the enemy tank.
A problem with this however is that we are dealing with very large, sometimes slow moving tanks, not highly trained operatives like Sam Fisher. How can we make it both smooth, fast, and make it like a well trained tank pilot is aiming this gun? What would be best is rather then very quickly move the ridicule to the targets center of mass is to slowly move the camera towards the center of mass. This way, it still looks as if the tank is still moving slowly, but not so slowly that if the player is trying to get the ridicule off the tank it can cost them their life.
Zoomed in aiming mode
Games like Splinter Cell Blacklist have a "shooting from the hip" and "aiming down sights" aiming mode. For Iron Heart, tanks don't have hips to shoot or sights to aim down from, the pilot does, but we're not controlling the pilot, we're controlling the tank! So what can do is differentiate between two modes of shooting (which could technically be controlled by states!), aimDownSight and aimFromHip.
The difference here would be a modifier for the previously discussed min/max value of horizontal or vertical axis change. For aimDownSight, the camera simply zooms in and when firing or moving, the camera retains more accuracy and settles faster to the neutral state. aimFromHip would simply be the standard view of the tank and would suffer from higher orientation changes and would settle much less slower, but would have a similar neutral and settle value.
Conclusion
While this really only covers how Last Life Studios could implement similar camera techniques that were used in Splinter Cell Blacklist, it is quite amazing how two completely different genre of games can come together when using similar techniques for approaching design question. I'd like to thank James Everett one more time for the excellent presentation, I learned a lot and I hope this blogs reflects that learning experience.




No comments:
Post a Comment