Showing posts with label little big planet 2. Show all posts
Showing posts with label little big planet 2. Show all posts

Sunday, 30 January 2011

Tech Analysis: Little Big Planet 2 (PS3)

Little Big Planet was a game that really got those creative juices flowing. On the surface it was a simple, physics-based platformer. But under the hood it became apparent that it was so much more. The tools given to create and design your own levels could be used in such a way that went well beyond the platform confines Media Molecule had envisioned for the title. And for LBP2, things have been taken a step further, with a complete set of tools designed to allow for just that: building your own creation that bypasses platforming altogether.

Of course, outside of the successes such unique custom content has found - and indeed there are millions of user-created downloads to be hand - the engine powering the game was always there to facilitate a natural realism, bound by real-world properties, and developed to augment the title’s physics-based approach. To that end, the original LBP featured both a realistic lighting and shadowing system, even emulating light passing through dense objects, along with a range of impressive, though perhaps restrained, visual effects.

For LBP2, Media Molecule have gone back and re-written most of their original engine, expanding on various graphical concepts simply toyed with in the first game, to delivering a fully-realised implementation here. This sequel incorporates comprehensive changes to nearly every part of the engine: lighting and shadowing for one, anti-aliasing and core rendering make-up to name but two more. All these tweaks and upgrades have not only made for an impressively organic visual look, but are also far more accurate in nature.


Take the baseline framebuffer for a second. LBP2 renders in 720p, like the original, but ditches the standard 2xMSAA (multi-sampling anti-aliasing) for Sony’s custom MLAA (morphological anti-aliasing) solution instead. The end result is a clean and sharp look, with incredibly smooth edges, free from most obvious edge shimmering and other such artefacts. Here, we see up to 16x MSAA on some surfaces in-line with the level of edge-smoothing this technique regularly provides, along with 4x and 8x on other smaller pieces of geometry.

The only aliasing that we can frequently notice on some areas, appears to be from various sub-pixel edges. There are also examples of what we like to call ‘soft’ edge shimmering on a few AA’d edges at certain angles. Although, most have competently been dealt with. Indeed, a lot of the aliasing present on screen is very similar to the kind seen in supersampled, in-game trailers; that is to say, its impact is very small in diminishing the high level of image quality we can see in Media Molecule’s sequel.


A change in the method of AA used is but one upgrade LBP2 has seen. The developers have also completely re-written their engine to work as a standard forward renderer, thus making certain visual effects much easier to do. Previously, parts of LBP1’s core rendering make-up was differed, meaning that some elements of the engine were sufficiently bottlenecked – use of alpha effects for example, had to be done via the less desirable A2C method, thus inducing a screen-door effect on many transparencies, like smoke and fire.

In LBP2, this isn’t at all the case. Here we see that all transparent effects are rendered using the more standard alpha coverage, with alpha blend method, free from the dithered, pixelated look they had before. Not only are these effects now easier to do, they are also better blended too. Particle effects, other elements, such as smoke and fire, are still rendered in a lower resolution. However, they are nicely smoothed over to avoid any pixelation, or other similar side-effects, much like the use of alpha in both Killzone 1&2.


Far more interesting, is the way that these effects now interact with the game’s light sources, in changing the intensity of the lighting and in turn, the way shadows are cast as a result. This is down to the game’s brand new lighting engine, which accurately simulates global illumination in how the entire game is lit and shaded. LBP2 uses something called volumetric lighting, whereby individual lights affects how other objects all around them are lit, with elements such as reflections and specular highlights changing dynamically.

A single light source in LBP2 now has the ability to change the lighting composition of the entire scene. Shadows are cast via every light source – and indeed every object - and move accordingly with changes to the lighting present. This is best observed as Sackboy traverses his environment, moving in and out of contrasting areas of brightness, and through more subtle changes in environmental shadowing, along with when there is lots of objects being randomly thrown around the screen, each with their own shadow.

We can also see evidence of ambient occlusion. Previously, we thought that LBP2 was simply using SSAO to deliver AO on various surfaces, characters etc. However, that isn’t the case. LBP2 actually features real-time ambient occlusion as a consequence of its volumetric lighting engine. For most games, this would perhaps be too resource intensive to do. Although, the simpler nature of LBP’s world, and being far more tightly controlled in terms of the rendering workload on screen, allows this to be possible.


In addition, we can also see that LBP2 also makes use of volumetric alpha effects, whereby flat, 2D spites can contain three-dimensional volume, having an incredibly obvious, depth look to then, whilst controlling the light output through the effect. A series of values contain that volume inside say, a cloud of smoke, giving the object depth, but more importantly accurately limiting/changing the amount of light that passes though it.

It’s a nice effect, one that appears to be only subtly used in what I’ve played of the game so far. On some downloadable, user-created stages however, ones with plenty of explosions, smoke and particles, the result is more obvious. Seeing the amount of light reduce underneath, or very mildly to the side of a cloud of smoke or mist, but not simply a pre-calculated dimming, but what looks looks like physically less light output is a key demonstrator of the effect in action.

In combination with the game’s use of light and shadow, this helps to emphasise the realistic look that MM have sort to create for the fantastical world of LBP2. Added depth is one consequence, but mostly, having all objects accurately look like they exist tangibly in the world is another.


Going back to LBP2’s use of shadowing, we’ve already mentioned that the game engine casts shadows for every object on screen, wherein a clear example of shadowing would realistically take place. Although, what we’ve failed to mention is that the game also uses soft shadows for all objects too.

These shadows, like with the game’s alpha affects, are rendered in a lower resolution to the framebuffer. However, this is negated somewhat – though not totally – by the use of high quality shadow filtering, which helps blend in the lower res soft shadows onto their environment and other objects.

There are still some examples of flickering shadows, and jittering edges where the use of filtering isn’t enough to hide their low-res nature. But, then again, outside of a in-engine, pre-rendred cut-scene, or in the obscenely high-end PC space, shadowing errors are simply part and parcel of current real-time rendering with performance-sapping, hardware limitations.


Another impressive part of LBP2’s technical make-up to look at, is the game’s use of real-world physics in how objects in this artificial world react. Swing on a rope, and you can almost feel the pull of gravity; push over a stack of lightweight boxes, and watch the ease of how they tumble, knocking others over, pushing and falling in accordance to their physical properties. Heavy objects also have weight behind them: Sackboy himself, bounces and flows through the air like stuffed and stitched toy – all of which adds a sense of real tangibility to the world these items and characters inhabit.

Also, these elements allow you to have an understanding of how many of the objects, challenges and puzzles work, before even attempting them. Once you know which objects have which properties – and some are obvious as soon as you see them, then all you have to do is master their usage, but using your own worldly understanding to do so. And of course, the technique required with the Dual Shock controller.

Occasionally, objects, characters etc, react with a ragdoll-like effect, which partially breaks the illusion that Media Molecule have created. Although, with so much going on technically, you can’t expect perfect representation of physics. Even in high-end CGI productions, replicating certain properties flawlessly, even just accurately, is a lot of the time, beyond what is feasible, let alone possible in a real-time rendered environment. In which case, the developers have done an absolutely stellar job with LBP2 as a whole, carefully balancing out what works and what doesn’t.


Moving on, and in addition the numerous advancements in lighting and shadowing, we can also see the inclusion of both a depth of field effect present in the background on some stages, and motion blur on fast moving objects.

Interestingly, the implementation of motion blur seems to be relatively simple – it affects the whole screen, rather than being done per-object, like in Killzone 3, and the original LBP. The reason for the downgrade – even though the effect still looks very good – seems to stem from having such an accurate, and performance-heavy lighting system as part of the core rendering engine. As such, there is less rendering time per-frame left for object-based motion blur. Instead, blur appears to be done as a simpler post-process effect.

On the off-set, all these advanced visual effects; the accurate, real-time nature of the game’s shadowing and lighting, motion blur, and depth of field, you would assume to have quite an impact on performance – that a heavy performance hit wouldn’t be unusual. Although, whilst sampling a few levels from the game’s campaign and some additional user-created stages, that doesn’t seem to be the case


Little Big Planet largely runs smoothly, simple dropping a few frames when the load increases beyond the engine’s capacity to resolve it, with v-sync being completely absent and some noticeable screen tearing sometimes being apparent. Media Molecule targets a solid 30fps update, and rather than allow for the framerate to drop heavily whilst encountering a heavier load, prefers to go over budget with rendering the next frame instead. Thus, we can see that a 30fps update is maintained in situations whereby if the game was v-synced, would drop down to 20fps for a brief moment or so, maybe longer, with some screen tearing being apparent as a result.

While the engine does successfully attempt to hold a steady 30fps for the most part, we can see that it does occasionally slow down, sometimes quite obviously down to around what looks like 20fps or so for a brief second or so, sometimes far less so. However, for much of the time what we are seeing as framerate drops, are actually manifestations of very mild tearing, in which the screen wobbles briefly for a split second or so, instead of tearing noticeably.

The engine frequently misses its window for rendering the next frame however, and as a result, we see a large amount of tearing on fairly frequent occasions, where the effect is clearly visible across the middle of the screen when it happens, sometimes mostly to the left, or all the way across, depending on how much the engine stalls.

At it’s worst, there can be many torn frames manifesting one after the other: the end product is what looks like a juddering in combination with a tearing of the screen. When this occurs it looks like the game is both dropping frames and tearing, but in reality is still holding a mostly solid 30fps.

But despite this, the overall engine’s performance is largely solid - sans perhaps the screen tearing, but otherwise, given the strain due to the complexity of the game’s core graphical, and indeed physics-based make-up, you can’t really complain too much. All that additional oomph goes a long way to further immersing you in Sackboy’s world, so I think that the performance trade-offs are worth it.


At first it might seem surprising to see such a technically accomplished rendering engine, for such a quaint, although very impressive platformer. But, when looking at how the core graphical make-up really adds a sense of immersion, a sense of increased believability to the world contained within, then it becomes completely beneficial.

Many of the elements that make LBP as magical as it is to play – not to mention to watch up close or from a distance – is down to how most elements in this virtual world act according to what we know about reality, the physical world around us. Things such as objects casting shadows which change as a result of the direction of a light source, or the smooth edges found throughout (MLAA) that hides the per-pixel, blocky nature of digital rendering. All definitively add something to the table, however small they initially appear to be.

In which case, Media Molecule has done a stellar job at creating a game that is as technically advanced as it is visually accurate. I doubt anyone will actually play LBP for its superb graphical make-up, but instead be fully engrossed in its fresh and addictively unique gameplay. The visuals, as it were, are simply there to facilitate the atmosphere and add an extra sense of realism to a cute, but cool, fantasy world. In that respect, LBP2 can be really nice to look at, but even better to play. And that’s exactly the point, really.

Thanks to Cynamite.de (gamesaktuell) for the screens and AlStrong for the pixel counting. Various galleries can be found here. Plus, a special no thanks to my phone cam, which failed to pick-up a very clear example of volumetric fog in a really dark area of the game.

Up Next: Crysis 2 analysis due for late tomorrow evening.

Friday, 23 July 2010

Tech Report: A Look At LBP2's Graphical Upgrades

Despite being a platformer with a slightly cutesy disposition, Little Big Planet is no stranger to technical excellence. You might not think that just by looking at it, but under the hood the original LBP was as interesting from a tech point of view as it was from a gameplay perspective.

Little Big Planet 2 then, appears to be much the same in this regard; the characteristic real-world physics of the title so integral to the very core of the game backed up by some impressive, and downright interesting engine enhancements. This is precisely the reason for us to be taking an extended look at the title. What we have here could almost be described as a full tech analysis of sorts, but in reality it’s more of a small glimpse, and dare I say, intriguing update into what media Molecule are doing with this sequel.

The first thing to notice, obviously, when going over the screenshots is the abundance of clean lines and smooth looking edges, or rather the distinct lack of any jaggies spoiling the scene. Now you might be thinking ‘supersampled’ when seeing the quality of the screens, and initially that’s exactly how I felt about the situation. However, this isn’t actually the case as all the screens you see on this page are direct-feed captures rendering in native 720p (1280x720), and are not downsampled from a higher resolution, as is usually the case with most PR shots released to the press.

The reason for the game’s lack of jagged lines and supersampled look then is clear - the use of morphological anti-aliasing has been implemented into the graphics engine.

Although the above anti-aliasing method has been confirmed by Media Molecule themselves you can still see some evidence of sub-pixel based jagged edges, another hint as to the inclusion of MLAA, as with supersampling this just wouldn't occur


MLAA has been featured a few times before here at IQGamer, namely when covering Santa Monica Studio’s God Of War 3, and more recently Guerrilla Games’ Killzone 3. It feels like not a month goes past without some new first-party title using the technique, a technique which is not only cost saving in terms of memory, but also in terms of securing the highest levels of image quality in a console specific release.

From the screens featured on this page it is apparent that the MLAA does far more for the image than what is possible via the more traditional MSAA, only to be beaten by supersampling (SSAA) which isn’t doable, realistically, on consoles due to the additional rendering performance incurred.

In LBP2, like with GOW3 the use of MLAA provides up to 16x MSAA coverage on some surfaces, and better than 4x on most others. The only area in which this form of AA falls down is when dealing with sub-pixel aliasing, where by any polygon edges smaller than the size of a pixel (this is a sub-pixel) receive absolutely no AA coverage at all. The same is true for MSAA as well, but not for supersampling which covers all aspects of the entire image. Regardless, this new form of anti-aliasing is a huge improvement over the 2xMSAA used in the first game.

Of course, the use of MLAA is just one part of many fundamental changes to the underlying graphics engine. For this sequel the developers have also opted for a solely forward rendering approach throughout the entire game, making transparencies and shadowing much easier to do.


Previously the original LBP used a differed solution to rendering lighting and shadowing in the game, which meant issues with displaying certain effects and also a reduction in shadow quality.

By switching to the traditional forward rendering approach this time around, the developers have been able to easily upgrade the shadowing system used in this sequel. Soft shadows are present throughout, which look much nicer than the hard-edged ones used in LPBP1, with shadows being cast for every main light source you can see, now without the need to pre-calculate them as shadowmaps like before. These soft shadows also blend in well with the game’s newly implemented use of screen-space ambient occlusion (SSAO), which is performed in real-time along with most of the lighting and shadowing.

This use of SSAO also gives an even greater depth to the image not found in the last game, complementing the range of visual enhancements on offer.

Seeing as the computational requirements for producing such graphics effects have probably also gone up, the resolution of these shadows is still relatively low compared to the rest of the game. I’m not sure how much resolution loss is occurring, although it is apparent that all shadows look slightly softer than you’d expect them to be, especially compared to if they were rendering in same resolution to match the rest of the game.

Transparencies however, now look to be rendered in a higher resolution than the first game, using proper alpha coverage, whereas before they were rendered in a half-res of sorts using the bandwidth saving alpha-to-coverage, which lead to a slight screen-door effect being present on all objects that featured it.

The true nature of the translucency is a nice touch, and goes well with other enhancements being made to the whole particle/effects system used through the game.


From what we can see LBP2’s use of soft dynamic shadowing in combination with SSAO is undeniably impressive, providing an incredibly life-like appearance to how the whole scene is lit at any given time. The tightly woven nature of the lighting and how it commands the way shadowing occurs in the game cannot be understated, and to this the addition of a global illumination (GI) style solution adds more believability into the mix.

In LBP2 light on some stages looks like it travels down from a main point (the sun, or a singular internal light source) into the world appearing like it reflects off some objects and onto others as it shades and lights the environment. An impressive visual trick, as in reality it isn’t being done in real-time at all, but instead is a pre-calculated simulation that uses something along the lines of a lightmap, moving these around on certain surfaces to create this effect.

The illusion of proper GI, and some cleverly implemented god rays is the focus here, convincingly backing up the original LBP’s realistic lighting model. Alone, these elements are merely hot discussion points. But when all brought together they bring a real sense of naturalness and cohesion to an abstract game world, much like in the way the use of physics provides us with some tangible connectivity between the game and our own experience of reality.

There's still a disconnect for sure, seeing as the whole style and notion of the game’s world is completely off-the-wall, but in it’s own little confines feels completely organic, succinct even. And that’s perhaps Media Molecule’s biggest success, not the visual wonderment that all these effects and improvements provide, but the ability for them to casually sink in and blend together so seamlessly into being part and parcel of the experience.

Low resolution shadows aside, and maybe some stray un-anti-aliased sub-pixel edges, LBP2’s tech has seen some noticeable changes, and some ingenious solutions to problems most lesser developers tend to flake over. The game isn’t visually outstanding from a ‘wow factor’ point of view, but instead has its moment in delivering small subtleties that do more for the overall experience than just for the sheer technical hell of it.