Red Faction: Guerrilla's Big Bang Theory

How Volition took destruction to the next level.

Impressive gaming tech is one thing, but the application of it in providing an innovative gameplay experience is quite another. This generation we've seen quite an extraordinary technological "arms race" take place, particularly in the first person shooter genre, where the boundaries have been pushed in different directions, from the precision 60FPS gameplay of Call of Duty 4: Modern Warfare to the sheer visual allure of Killzone 2. But despite the truly impressive technical leap witnessed in both games, in gameplay terms they are still clearly cut from the same cloth in terms of what we – as players – have come to expect from the genre.

The release of Volition's Red Faction: Guerrilla is perhaps an exception to the rule, and that's the reason why Digital Foundry was determined to get the developers on the record in an in-depth tech interview. The core of what this game achieves is designed to do more than just one-up its competitors in terms of its sheer destructive power – the engine itself opens up a whole new host of gaming opportunities and surprise moments that in many ways revolutionises the genre.

"Honestly my favourite moments are when things go wrong and I die in spectacular ways," senior programmer Eric Arnold says. "The enemy could shoot a carefully laid remote charge setting off my own trap while I'm in it, or I could see a shadow sweep across my screen and turn around just in time to see the nearby smoke stack crush my face. What really makes it special is that we don't script big set pieces that the player watches, we allow the player to create their own wow moments and take ownership of the destruction."

But how does it work? What makes it different? Eric Arnold gave me detailed primer I'll be publishing unabridged on the Digital Foundry blog next week, but the key difference is that the new GeoMod 2.0 engine works on the basis of stress points. It evaluates the structural stability of every object in the scene on a continual basis as they take damage. Every kind of object from a knee-high section of retaining wall to a bridge the size of a football field undergoes the same analysis.

Number crunching then kicks in – objects being supported by the structure under stress are factored in, the stress code scans from top to bottom adding up the force generated by the mass above and compares this to the strength of the material. If that force is too much, the material breaks, which can bring the whole house down if it is the final connection. As the stresses increase and the material weakens, suitably ominous groaning and creaking sound effects kick in.

As Eric sums up: "The end result is a world that physically reacts to the player in the same way that real objects would – snap off two support legs of a tower and it will tip over sideways, if there happens to be building next to it the tower will crush the roof and tear a hole in the wall, if there happens to be enemy troops inside that building they will wake up with a splitting headache if they get up at all. And the best part of it all is that the engine is entirely player driven, they are given a set of tools, a list of goals to accomplish, and the freedom to solve them in any way they see fit."

Debug footage of Red Faction: Guerrilla, showing the stress points and connectivity calculations in action, superimposed over real time footage, followed up by a montage of extraordinary explosions.

It's fair to say that gaming's biggest bangs in the PS360 era have mostly been contained to cut-scenes, engine-driven if we're lucky. In fact, it can be argued that we've not seen apocalyptic levels of in-game destruction that aspires to this level since Criterion's Black on previous generation platforms.

"I would bet that many developers have tried, only to shy away in horror," says another of RFG's senior programmers, Dave Baranec. "The problem with a system like this is that it touches absolutely everything else in the game. It makes rendering tremendously more difficult. It makes level design extremely hard. It causes memory usage for what appear to be simple structures to be staggeringly high. So if you want a whole-hog destruction system like we have, you had better be prepared to pay for it with a ton of effort and sacrifice."

"It is freaking hard!" Eric Arnold adds. "Not only do you have to spend a whole lot of time to create the technology... but it also creates problems for every discipline on the game. Rendering guys have to deal with way more stuff to put on the screen and make it look pretty, AI guys and designers have to deal with the level constantly changing, sound people have to create assets for exponentially more interactions, then if you want online play you have to come up with a way to synchronise all of it. That's not to mention the memory and processing time that large scale destruction chews up. It is not a feature that can be dropped in to an existing game, it has to be planned for up front."

And that planning first begun back in 2004, before Xbox 360 devkits were in the hands of the developers and when PlayStation 3 hardware was still in its formative stages. Coupled with this is the fact that Red Faction: Guerrilla's core tech was actually based on foundations provided by the third party Havok physics library – a piece of code that must surely have been tortured to breaking point in its implementation in this new game.

"It really started out as an educated guess," remembers Arnold. "Even after we got the kits we weren't sure that our idea would work (we were told by the guys at Havok early on that it, in fact, would NOT work because it would put too much of a strain on their system). It wasn't until about two years in to development that we were able to prove that we could pull it off and make it look good, up to that point there was a lot of finger crossing that we would pull some magic out of our hats."

However, much of the pre-production work actually seemed to be based on feasibility studies on just how Volition would actually achieve its ambitions for the stunning destruction model.

"We knew that the focus was going to be an entirely new and very challenging engine," adds Baranec. "Before we could figure out the horsepower necessary, we had to develop the techniques for the destruction system in the first place. I'd say we spent the first ten months with just one programmer working at that level, along with one artist and one designer."

And as for Havok, let's just say that the team became very intimately involved with the creators of the physics technology that has become the de facto standard on PC and current generation consoles.

"The best way to think about it is: Havok is to Geo Mod 2.0, as DirectX is to the Unreal Engine or Crysis," explains Baranec. "It provides some core functionality, but the engine itself where all the fun stuff happens."

"We used Havok mainly for rigid body collisions, vehicle simulation, and ray casts," adds Arnold. "The entire destruction engine was custom built to sit on top of Havok, and we did have to customise a good bit of their internals (especially for the PS3 to get it all running fast on the SPUs). The guys at Havok were great to work with and joked that they all groaned when I sent them an email because we were stressing their code in ways no one else was coming close to, so the bugs I uncovered were particularly nasty."

One particular challenge facing Volition was that the sheer scope of their destruction model could in many cases overwhelm the Havok code, even when it had been optimised for the target platforms.

"Internally, the destruction system is capable of modelling and processing buildings of super high complexity," Baranec continues. "But if you let a simulation of that fidelity run, it is very easy to get into a situation where you are just presenting the console hardware with too much work to do. So we spent a large amount of time balancing out extreme detail with what the hardware can reasonably do."

Which brings us on to the question of where you draw the line between mathematically correct physics and just how realistic they need to be within the confines what is – at the end of the day – just a game. To what actual level of precision do the calculations have to reach before the effects become basically unnoticeable?

"There is a definitely a diminishing returns curve here, the problem is what is noticeable to the average player is a moving target based on what is happening in game at any particular moment," says Eric Arnold. "Knocking a hole through a wall right in front of your face is a completely different problem than a two story office building collapsing in on itself. We had handle both, and everything in between, without slowing the game down or pulling the player out of the fiction we created."

There's also the concept of you what might call "hero" physics to consider. As the Burnout team will tell you, adhering to reality too closely might well be the mathematically correct thing to do, but it will be to the overall detriment of the game.

"For the most part we stayed as close as possible to reality mainly so things react the way the player expects," admits Arnold. "But the rule was 'this is a game, fun trumps correctness!' The largest example is probably the sledgehammer. Not even the world's strongest man could tear through a wall or send a bad guy sailing the way you can in the game, but that doesn't matter because it feels good and is a whole lot of fun. If we insisted on realism the player would spend half an hour chipping away at a wall to make a small hole (or more likely give up after a few swings because it is boring)."

"One of my favourite phrases about game development is 'we're not making simulations, we're making games'," adds Baranec. "This is often used to chide a young programmer who is trying to get too fancy or complex with a new piece of code. A corollary is 'perception is everything'... what was important was to get a bunch of eye-pleasing objects flying around and crashing into each other in believable ways. Better to have a game than a mathematically correct simulation that takes 30 minutes to render a frame."

Red Faction: Guerrilla came under scrutiny in our recent Face-Off 20 feature, which also featured an extended high definition video showing that Volition's conversion work on both platforms is of a very good quality.

"This was one of our top priorities," admits Eric Arnold. "We knew from the start it would be cross platform even though the PS3 development hardware was still years off when we started. Once we got it and had the game running the two machines moved in lock step to the end of the project... Given how hard we are pushing the systems I'm still impressed that we were able to make them virtually identical, it certainly took a lot of hard work from some very smart people on the team to get there."

In our previous Burnout tech retrospective, Criterion explained its system of "balance points" – the notion of creating a game experience that runs almost identically on multiple systems by taking a holistic view of what each platform is capable of in its entirety. Code was essentially identical regardless of the hardware being targeted. An elegant approach, but while there were similarities in their way of handling things, the Volition guys optimised each platform individually.

"In terms of hardware specifics, the multiprocessing setups on the 360 and the PS3 are significantly different," says Baranec. "At some point, you simply have to diverge big pieces of code to efficiently deal with this. For us, the two big areas here were physics and rendering. Both areas had high level cross-platform frameworks, but when you get to the most performance oriented areas, they did diverge into totally platform specific code. Thankfully, the volume of code this represents of the overall codebase is very small."

Keeping the two platforms at the same level of performance did however incur several sacrifices from the team.

"We went as far as cutting optimisations because they would only work on one platform," reveals Arnold. "For our own sanity we tried to keep the internals as close as possible, but with the SPUs we had to do custom solutions at the time for performance reasons. For destruction, I had to physically remove functionality and code from Havok in order to make room for our system on the SPUs."

"Generally speaking, we like to keep both platforms developing in parallel. You can't really afford to let one platform slip behind because then it becomes difficult to make predictions about overall performance and features," adds Dave Baranec. "Which then impacts the ability to create assets, which then impacts the schedule, which then impacts the budget, etc."

Regardless of the challenges working with the current generation consoles brought about, the fact is that Volition and the GeoMod engine will be around for a long time yet – with the principles and fundamental technology now established, it will scale up to the next generation and even beyond. And for those lamenting the passing of the terrain deformation in the original GeoMod, there is hope it may return.

"In terms of an improved feature set, anything is possible," reckons Baranec. "The original GeoMod engine was a boolean solid operation engine, which made it ideal for terrain modification. While this is a distinct piece of functionality from GeoMod 2.0, there's nothing inherently stopping them from being rolled together into one world... What I find really exciting is that the tech is trivially expandable as hardware improves. The core system is capable of doing much more than you see in RFG. What limits us currently is how much rigid body simulation modern hardware can do. In that sense, the engine is very much a mean nasty dog that we have to keep leashed... for now."

Red Faction: Guerilla is out now for both Xbox 360 and PlayStation 3, with DLC announcements due imminently. A PC version is set for release on Friday, August 28.

Do you want to know more? The Digital Foundry channel is updated frequently with new technology stories and performance analyses. The full transcript of our interview with Volition will be running next week.

Comments (25) Latest comment 3 years ago

Comments threads automatically close after 30 days, but please feel free to continue chatting on the forum!

  • Metalfish #1 3 years ago

    The tech is extremely impressive, and does what it needs to very well. I guess the next step, if you want it to look a little more real, is to working some structural properties such as bending rather than the pure collapsing here that's a little like wet sand rather than concrete.
  • Chufty #2 3 years ago

    Great article, very interesting. Shame there was no PC angle though, but I expect that from EG :)

    I guess we have BitTorrent to thank for the delayed PC version.
  • Senate #3 3 years ago

  • Wastelander #4 3 years ago

    I'm not convinced with the tech TBH. I completed RFG and enjoyed it loads, but most of the time I found the physics doesn't actually work as it should (floating floors, whole buildings held up with a couple of sticks, ladders in mid-air etc)
    Looks great when everything's exploding, but the whole ''take out the structural supports and watch the building collapse realistically' doesn't really work in practice.

    Almost seems like a step back from the original geomod by being limited to just structures as well.

    Edited by 1 at 27/06/09 @ 12:33
  • Wastelander #5 3 years ago

    Oh, and where the hell is our New Game+?

    Way to give us all the nice toys at the end of the game then leave us bugger all to do with them because we've levelled the planet already.
  • schachmatt #6 3 years ago

    I would find it more interesting if RF would be compared to similar advances in games like Alone in the Dark 5 or the tech demo LucasArts showed off before Force Unleashed or Crysis. Biggest difference probably being others didn't focus gameplay around it and not having massive structures built with it.
    Only looking at RF is too one-sided and doesn't show how far the general technology in gaming really is, contemporary gimmick or future.
    Nonetheless I always enjoy Richard's articles.
  • Nephirion #7 3 years ago

    Euroconsolegamer?

    At the risk of starting a flame war, I think that PC gamers have far greater expectations of games for their platform than console gamers. PC games can make use more complex controls, much higher resolutions, more memory, gpu power etc. While we wait to see the RFG port I doubt much will be added to take advantage of these resources as the engine was built around the limitations of the consoles it was designed for.
  • miiiguel #8 3 years ago

    advantage of these resources as the engine was built around the limitations of the consoles it was designed for.
    Or it is designed to match the limitations my PC (and milions of others) have ?
  • zakrocz #9 3 years ago

    Good read. Good fun game thanks to the destruction tech and multiplayer is a real blast with the powerup backpacks
  • frostcircus #10 3 years ago

    Volition's last PC port was fucking atrocious, so I refuse to raise my hopes over this one
  • basalarmageddon #11 3 years ago

    I wouldent mind seing what the mod comunity would do with the PC port.
  • DaemonSpawn #12 3 years ago

    2 mute09
    On xbox 260 game runs pretty well. Not my PC preferred 60+ fps, but solid 30 - for sure. Explosions and destruction can sometimes be very spectacular - I''ve never seen anything like it in videogames.
    Of course Crysis has much better textures, lighting, geometry, view distance, beautiful special effects, particle system and quite realistic physics, but when my high-end PC bows in horror on CPU_demo1 (the one with unlimited rocket launcher ammo and several exploding huts), I clearly understand that RFG has in some way more fun destruction physics because it runs on inferior hardware (xbox 360/ps3) with tons of limitations and still allows to blow much more shit up.
    Yeah, it's not photorealistic, yeah, not that technologically advanced as Crysis, but it's still fun to play (blow up, destroy and crush) and watch (collapsing buildings and... well - more collapsing buildings), just in its own way.
    I'd like to have more games like RFG which build gameplay around some fun feature and really make that feature work without crippling all other game aspects (plot, graphics, level design, framerate etc) too bad.
    Edited by 1 at 27/06/09 @ 14:26
  • Super_Zee #13 3 years ago

    Really interesting article, but it's nit-picking time - RFG doesn't belong in the "First Person Shooter genre" as, well, it's not an FPS. I really wish it was, but the devs argued they had to move to third-person so the player wouldn't get lost in the carnage. I'm not convinced, but I would have preferred a linear FPS with an amazing storyline, brilliant set-pieces and rock deformation anyway.
  • Lemming81 #14 3 years ago

    Physics and nice graphics would have been nice and not unreasonable in this day and age. I was going to get this game but all the footage of it I've seen make it looks...well a bit shit in the visual department really. Can't put my finger on it though. Maybe inFamous has spoilt me a bit.

    Also, I would have loved a more gritty Blackhawk Down feel to the game. The whole insurgence on a dusty red landscape could have made this fantastic rather than the slight cartooniness it seems to have instead.
    Edited by 1 at 27/06/09 @ 16:36
  • Weebleboy #15 3 years ago

    Or you could, you know, just use Havok Destruction.
  • Nephirion #16 3 years ago

    @ miiiguel; If you PC is limited you can buy a new one or upgrade with a console your stuck with a limited hardware spec
  • miiiguel #17 3 years ago

    @Nephirion : that wouldn't change anything, PC is an open architeture, and therefor a dev has to think about every single one out there. Consoles do not suffer from that.
    Anyway, I can't stand office-desk gaming, I do PC 10 hours a day for working purposes, don't do ludic on a PC.
  • Chufty #18 3 years ago

    @Nephirion : that wouldn't change anything, PC is an open architeture, and therefor a dev has to think about every single one out there. Consoles do not suffer from that.

    Supposedly, that's what DirectX is for - unifying PC gaming architecture. The problem is NVidia keep making faster and more expensive graphics cards and convincing people that they're needed to play the latest games - which is just completely wrong.

    Even a fairly old and fairly cheap PC processor is going to be much better at doing this sort of complex physics processing than certainly a PS3 and probably an Xbox 360 as well. In theory the PC game should be far superior.

    PC gamers, however, know it wont be.
  • onyxbox #19 3 years ago

    Excellent Article, this is more like it EG. I love reading this kind of feature.

    :-D
  • kinky_mong #20 3 years ago

    Screw all the moaners, as Volition said in the article, fun comes first over realism. The Geo-Mod technology is a great achievement and while impressive in Single Player, it really is something else in multiplayer. Playing a match on Quarantine is fantastic when the heavily built up square area gets reduced to rubble by the end of the match.
  • Chufty #21 3 years ago

    mute09: Thanks for your intelligent contribution.
  • miufs #22 3 years ago

    As a civil engineer i must say that some parts of it are very good indeed but in others it lacks some major physical properties of materials such as the plasticity of steel and lines of rupture of structures with multiple degree of freedom.

    But even so, it΄s great to see these improvements in a game.
    Kudos to Volition!
  • Dr.Mott #23 3 years ago

    It is definitely a very impressive engine, although as someone already said, you do get huge buildings being supported on just a couple of tiny sticks on too many occasions. But generally though, brilliant, especially in multiplayer.
  • Darren #24 3 years ago

    I'm happy to wait for the PC version because, while the console versions are undeniably impressive in terms of physics, that has come at the expense of a smooth tear-free framerate but Volition have never been too bothered about that in the past. The god-awful tearing in the console demos I tried instantly put me off purchasing it on either of those platforms. Nice game otherwise though even if the physics and over abundance of red in the colour palette are really the only two things which make it stand out from any other third-person action game.

    Even if the PC version is poorly optimised, my PC should still be able to run it fine because its far more powerful than either a PS3 or Xbox 360. Here's hoping that we still get a quality "port" though.
  • Davemanz #25 3 years ago

    Darren, what console did you play the demo on? I have the PS3 version, and while I wasn't entirely impressed by the demo I bought the game and the engine runs amazingly well. The frame rate is really high and I don't see any tearing, really. This and Burnout are both built on absolutely wonderful engines that work great on the PS3, give it a shot.