By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Forums - Sony - Saboteur's unique PS3 anti-aliasing (up to over 16x/spu driven)

Saboteur's unique PS3 anti-aliasing

December 9th, 2009

If there's one element of multi-platform development that comes up repeatedly in our Face-Off coverage, it's the implementation of anti-aliasing on current-generation HD consoles.

It's often the case that the Xbox 360 version of a game features edge-smoothing, while the PlayStation 3 counterpart will either leave it off altogether, scale it back, or use an NVIDIA specific technique called "quincunx", which refines edges nicely, but blurs the entire texture in the process.

None of these options are particularly attractive (though quincunx has its place in certain scenarios), and neither is blurring the entire screen, which other people do; the so-called Vaseline effect. However, recent games like Brutal Legend and Overlord II on both console platforms have tried out another technique - seeking out just the edges themselves and blurring them, leaving texture detail intact. It's better than nothing but still not actually that good.

The PS3 rendition of Pandemic's The Saboteur is different though. It's special. It's trying something new that's never been seen before on console, or indeed PC, and its results are terrific. In a best-case scenario you get edge-smoothing that is beyond the effect of 16x multi-sampling anti-aliasing, effectively delivering an effect better than the capabilities of high-end GPUs without crippling performance. Compare and contrast with Xbox 360 hardware, which tops out at 4x MSAA.

Let's kick off with a quick comparison of the effect in play on both versions of the game. It's interesting to point out that both Xbox 360 and PC versions of The Saboteur have no support for anti-aliasing whatsoever. It's just the PS3 owners that get the love, for reasons explained later. While the lack of AA in the Xbox 360 version is a bit disappointing, for the purposes this piece it's a bit of boon as it effectively gives us a "before and after" means of better understanding the PS3 technique.

So how is it done? Well, in the comments section of one US PlayStation Blog post, Pandemic's Tom French talked about "using the SPUs to do a full-screen FSAA filter". The satellite processors within the Cell chip are excellent for extremely fast processing of limited batches of data, making them perfect for the task at hand, which is to process the entire framebuffer seeking out all edges and then blending them.

Posters on the Beyond3D forum soon began to investigate. It's a technique initially put forward by Intel, but best described with examples in this blog post which shows the real potential of the technique, and how it compares with the Brutal Legend method of edge-blurring. There is no real competition here. The so-called morphological anti-aliasing (or MLAA) seen in The Saboteur is leaps and bounds ahead of anything we've seen so far when it works in optimum conditions.

Being experimental, it does have its drawbacks. When edges in-game are one pixel or less than one pixel in thickness, the edge-detection technique doesn't really work. Pandemic also subjects the entire, completed framebuffer to analysis - including the HUD elements - so there is often artefacting on the text overlays. This is probably unavoidable in this game: while the GPU starts to draw the next frame, the SPUs are busy with the AA and for that situation to take place the completed frame will need to be analysed.

Pandemic is keeping mum on the AA technique, though some tidbits have apparently leaked from the developers on the NeoGAF forum. According to these posts, the filter is applied to the luminance of any given scene. It's a really clever way to maintain speed, but on the other hand, some colours - red and black for example - have similar luminance levels, so the filter picks up the majority of edges but misses others. Additionally, in some cases there are some interesting "fuzzing" issues on edges, which without some more illumination from the coders is very difficult to explain. Perhaps it's simply the effect of processing a motion-blurred screen?

Overall then, what we have in The Saboteur on PS3 is very much an experimental technique, and you get the idea that the base visuals suit the technique well. In playing the Xbox 360 version, the level of "teh jaggies" isn't exactly a major issue; the game lacks high-contrast edges, and is pretty soft in general. In this environment, the MLAA technique employed by Pandemic works beautifully and in most cases you really need to look hard for the artefacts. But they are there, and you wonder how well the technique would work on higher contrast games like Battlefield: Bad Company 2, Halo 3 or the almighty Uncharted 2 where the MLAA would really have its work cut out.

In the meantime, what we have is something that's new and genuinely exciting from a technical standpoint. We're seeing PS3 attacking a visual problem using a method that not even the most high-end GPUs are using. You can't help but wonder whether MLAA, in combination with MSAA and a filter to weed out the artefacts, couldn't be hardware-integrated in the next generation consoles.

It'll also be interesting to see whether MLAA returns in other PS3 cross-platform projects before then, because it looks extremely good in action. Chances are it will come down to how computationally expensive the technique actually is on the SPU, and how it can be refined still further, and that's where our knowledge hits a brick wall. If any ex-Pandemic staff want to share more on the MLAA implementation, feel free to get in touch...

http://www.eurogamer.net/articles/digitalfoundry-saboteur-aa-blog-entry



Check out my game about moles ^

Around the Network

I'm curious to know more, how much SPU power it required to do this for example. I'd be very pleased to see this implemented in future games, and made easy to do for the PS4.



nice hope they can fix some of its flaws and want to c the MLAA in more if not all ps3 games



                                                             

                                                                      Play Me

Weird that they didn't support AA in the 360. I thought that was hardware based AA so it should've come at almost no cost or very little overhead.



That's very impressive, smart way to explore the processor.



Around the Network
Rainbird said:
I'm curious to know more, how much SPU power it required to do this for example.

I read in some place that this technique uses one SPU of Cell.



Article is stupid, there are AA modes outside of MSAA that exist for PC graphics cards. Both Nvidia and AMD have their own version of an edge detect AA mode. Also said mode is not better than 16xMSAA as it leaves areas of the game aliased.



Tease.

Article is confusing, but if this is a way that games are going to look better... than good, but next time can they try and make a great game, not just another average game {though of course there won't be a next time}



Squilliam said:
Article is stupid, there are AA modes outside of MSAA that exist for PC graphics cards. Both Nvidia and AMD have their own version of an edge detect AA mode. Also said mode is not better than 16xMSAA as it leaves areas of the game aliased.

He was refering to the specific method used on PS3, not stating that AA outside of MSAA is not possible on a PC (Thats what i gathered anyway)



Did anyone else notice that the graphics overall aren't very good at all? I'm a bit disappointed actually.