A close-up on the drivers of PGR3 and the detailed animation system.
This week's been a bit of a funny one: I went down with the dreaded lurgy which has been going around (no doubt due to proximity to sniffling artists). Hopefully I haven't spread the
germ; otherwise we could have a full blown snot epidemic on our hands! Yikes! After getting back to work on Thursday I found that the Bizarre fairies had shifted my bits and bobs to a new desk in my absence. I'm now parked next to
POB, so he was obviously the one who drew the short straw last week!
In the meantime, I've managed to somehow end up acquiring Martyn's Xbox 360 development kit... so I'm now able to take my own screenshots among other things. Excellent stuff! Initial impressions of the unit are very good: it looks great, runs great, and feels great. It's a very exciting time to be a gamer; the coming months will be perhaps the most interesting our industry has seen. Now all I need to do is swipe a huge HDTV and 5.1 system from somewhere and I'll be set...
You can tell that PGR3 is really starting to come together now. Pick a random TV screen around the office and you're bound to see something which takes your breath away. For example, this week's development log featured this image which caught my eye:
As you can see, this is a close-up shot of a bloke driving an
Ariel Atom. Gotham programmer Chris told me: "The driver is completely lit and shadowed in real-time - there are no pre-baked shadows in any of the textures used." In other words, those creases in the suit aren't drawn on by an artist. They are actually there, in the game, generated by virtual light sources like the sun or city street lamps. Chris continues: "The driver casts shadows onto the car interior and receives shadows from the car itself for maximum realism. There is also a high resolution bump-map that adds a fine cloth-like weave to the driver's suit." Although I personally think it looks great already, Chris is also keen to point out that "this is all work in progress, and needs plenty more tweaking..." Apparently it'll look even better in the final game!
When I asked about the animation of the driver, I was a little surprised at what I was told. As I'm sure you're all aware, we have
motion capture facilities in the office here at Bizarre, and we have used the technology to realistically animate our crowd in PGR3. I assumed we'd use the same system on our drivers... However, the drivers themselves are a more complex system altogether than just a simple motion capture.
We can take basic motion capture of the driver's animations, but it won't work just sticking that into all of the cars. We have 80 cars in PGR3, and each one of those has a different dashboard layout and interior design. Using the same animation for two different cars would lead to the driver's hands or feet missing their targets. Nobody wants to see a driver change gear, only to miss the gear stick by two feet!
To compensate for this, the team here have made a different steering animation for every car in the game. This ensures that the hands of the driver always match up to the steering wheel correctly. These animations are then blended with some procedural animation to make the driver respond to g-forces as the car swings around corners. The final result is the driver accurately gripping the steering wheel as he is thrown around in the cockpit of a super car going over 170mph!
But what about changing gear, or pulling the handbrake? Of course, every car's gear stick and handbrake is in a different position - are these hand animated as well? Actually, no. Chris explains: "we use Inverse Kinematics (IK) to guide the driver's hands to the right position during gear change and handbrake animations." This means that the game actually creates the movements for these actions based on the co-ordinates which have been pre-calculated for the current car.
It's all very clever stuff, and will combine to make perhaps the most realistic drivers in racing game history. That's what we're aiming for anyway!
As a bit of a pop quiz for next time, here's a question for you. What is this crazy man doing with a rolled up map, a microphone, and the bonnet of my car?