The Pixel Crush

-------------------------------------------|Digital Animation & Game Criticism|-------------------------------------------

Saturday, 27 August 2011

The Colour of a Crysis

Several related topics have been stalking through my brain pastures of late, and I thought it might be time to coalesce them into a blog post.

They are in fact, all related to light, and the way it acts in the physical world, or the artistic lighting of a scene. Whilst I was in Spain writing my script, I also spent lots of time capturing the different behaviours of light, the way it casts shadows, shines through materials, reflects, and bounces from surface to surface. This is something I am keen to replicate in my third year project and so this reference and observation will (hopefully) be useful, though all this has allowed my lack of colour theory knowledge to resurface.
Olly the photographer.

Two videogames that have recently redefined what the visual benchmark is for modern graphics are The Witcher 2 and Crysis 2 (another set to do the same appears to be Rage). But its not what they do technically that I want to focus on, actually that's a massive lie, I would love to drool praise all over both the Red and Cry engine's graphical capabilities but it would be a) propaganda b) predictable and c) un-constructive. Both games have extremely coherent art styles that tie together everything from design, to colour palette, to rendering features and lighting is one of the most integral aspects. Especially in Crysis 2.

I might have mentioned it before, or possibly in my brief real-time rendering presentation, but Cryengine 3 is one of the first: and very few, game engines to implement an approximation of the indirect lighting techniques used in photo-realistic rendering. This completely changes the usually flat lighting of a videogame into a gorgeous explosion of colours and tones, each bleeding into the next. Here are some examples, lets see if I can pass off this polygon porn as analysis.
The Ceph like to coat the walls with jam.
 Crysis doesn't feature a lot of down moments in its pacing that aren't about exploring, there are a few character based moments but these are usually interrupted by someone smashing you through a window or making something else break: like an entire street for example. Therefore it is atmospherically consistent to have a dramatic colour scheme, and none are more so than the complimentary colour scheme: where one colour is set against its opposing colour on the colour wheel. Crysis often sets the orange glow of a halogen light against the blue shadows of sunlight, as seen above, simultaneously contrasting the colours and the interior/exterior of the environment.
A flooded motor way.
This is one of the better screen-shots I managed to get of the indirect lighting. First the sun strikes the rubble, and then illuminates the wall as it bounces from the rubble, creating a nice gradient and cohesion between all the disparate props.
Beautifully tessellated bombed out brickwork.
 High dynamic range lighting is a really big deal in modern games and the player will often never notice the exposure changing as it adapts to the lighting conditions but here you can see as I've left a dark room and looked up: the sky is completely over-exposed so as to reveal the light cascading down the walls into the darkness.
Yes, even I have a shadow.
Shadow is what allows the indirect lighting to shine (ha!). Creating darkness makes the subtleties clearer and creates contrast as the player transitions between environments. I think how all this works is that the game engine analyses the lighting pass of the render, and the zdepth (distance from objects in the scene) and proceeds to generate point lights using the colours from the brightest areas in frame. This way bounce lighting is simulated at very little cost. Also I recommend looking at some of these full screen, Nelson did me proud.
The nights were some of my favourite moments.
At night the indirect lighting becomes all the more important as its used to fill the environment in the absence of sunlight and, as you make your way towards times square and the station too, many many artificial light sources fill the frame with a clash of colour. This is something that differentiates the pre alien invasion world to the atmospherics and dull tones of the occupied New York.
Complimentary Colour.

Here is a really obvious example of the compli-
mentary colour I was talking about. See right >>
Colour connotes temperature and often the cool blues are used in the more science based labs of Crysis, while the warm yellows illuminate the parks and streets.
Symbolic Lighting.
Lighting can have meaning beyond temperature though and during this intense escape as the streets are torn apart the sun is setting. The symbolism here is hardly deft but when the player is being chased in a tank by alien gunships as the ground crumbles beneath them its only something that's going to register on a subconscious level, if that. Also evening light makes for nice long shadows that are always interesting compositionally.
Bounce lighting exemplified.
 Just in case you've been confused this whole time: the bounce lighting I'm talking about is just what it sounds like, it enters through the window, and illuminates not only the first, and brightest wall, but also the one facing it.

Crysis 2 was written by Richard Morgan, a British science fiction novelist. He professes a 'complete addiction to videogames', sounds a bit unhealthy to me...but it interests me because I have a theory.

In Crysis you play as a man in a suit who's A.I can transform the suits surface to perform cloaking, armour and power functions. This is signalled to the player through a digitized voice announcing your every action, various on screen visual cues (power meters, image artefacts from physical trauma) and the suit likes to reboot every time you get sufficiently crushed by something. It seems as though this concept was dreamt up by someone who would like to live inside of a computer, and therein lies the appeal to the Crysis demographic. "Can it run Crysis?" is the question that validates, or conversely voids, the £500-£1000 you just spent on a fancy new gaming PC. Crysis' forte is immersion through graphical prowess so the target audience has invested a lot of money in living inside a computer. Something that playing the Crysis games aims to simulate, to live inside a computerised suit that separates you from the world around you, and is something they are immensely accomplished at. Its like a meta fantasy of empowerment. As a player, but for the first 10 minutes of gameplay, you are two layers of reality removed from the fictional world the game perpetuates, and one of those layers in itself is fictional. Yet it all feels so deeply physical. Have a trailer:

Pixel Propaganda

Here is the full library of screenshots I took for this post. Spoilers.

I read a really interesting interview with John Carmack, legendary programmer at id Software. He has some pretty interesting things to say about the state of graphics.

Friday, 19 August 2011


I've been away, but I'm back now.

All The Best Ideas Are Spiral Bound

While I was absent I took the opportunity to write a script for my 3rd year, final major project, short film idea. I've written previously about the planning stages for this writing and once all that was done (so I thought) I finally moved onto the writing of the first draft. I reasoned that as it was the first attempt I should just get everything down on paper and then when I came back for the, no doubt numerous, re-writes I could edit out things that weren't necessary of didn't fit.
For Every Budding Screenwriter

When I was done it was 3500 words. This spanned just over 7 pages which, according to screen-writing rule of thumb, translates roughly to 7 minutes of film. This is far too long for what might be achieved realistically in our measly 2.5 terms of production time so I aim to get it somewhere between 3 and 5 minutes for the final draft, I think its going to be much nearer the 5 minute mark though considering how much I have to cram in for the thing to make sense and also have some kind of arc and structure. I'm tempted to put the whole thing up for anyone who wants to critique it, but I think a) no-one would actually read it. And b) it'd ruin the story (if I did actually finish it) for anyone who read it and then watched it after.

An Article On Screen-writing

I even read an article on screenwriting in the newspaper and among the nuggets of wisdom was one piece of advice telling me I shouldn't believe 'how to write a screenplay' books. Oops. While this is not doubt to warn people of limiting how they write according to mainstream cinema, it doesn't change the fact I've learned a lot about 'best practice' approaches to things like writing dialogue, scene structure, and pacing from reading that book.

I recently re-watched Serenity and made notes of what was happening each scene in terms of character motivation and the scene length and was going to try and analyse this and come to some conclusions about how many acts there were, how many sub-plots, what each characters developmental arc was etc. But I think it'd be pretty boring to read and perhaps not that constructive. Here is a pretty trailer instead:

Rendering is a tricky thing, and any way you can cut corners with it whilst maintaining image quality is massively advantageous. Something I'd been meaning to do for ages is figure out how to use the command line to render using Mental Ray for Maya, so I did that, after fiddling for a while and getting paths and directories wrong. Once its up and running its not too complex and can be further simplified by writing the render commands in a text file (.bat) and then just putting that file in the folder your scene is in and executing it (overly gory terminology for such a benign command). It halved the render time of my negotiated brief, so that's really encouraging that I can render Noel's face in 2 minutes at 1080p with decent quality final gathering, displacement maps, and sub surface scattering when it was taking 4 minutes inside Maya (I made some optimisations I've forgotten about because it used to be 6 minutes).

Pixel Propaganda

This is kind of out of date now but a earlier this summer an anti-islamic Norwegian shot up a political youth camp and blew up a government building. A lot of people died. Accompanying this massacre he wrote a 3000 page document explaining his motives (are the most psychopathic ones always the most lucid?) in which he cited videogames as tools he used in his preparation for the massacre. While this is upsetting in a number of ways I don't like how either the mainstream or gaming media responded to this fact.

I've been playing a LOT of The Witcher 2, it is a sublimely fantastic piece of entertainment and a pretty good game too. There are some tropes we ignore while playing videogames in order to maintain suspension of disbelief, this piece of writing uses those to make me laugh hysterically for 10 minutes solid. Though it won't make all that much sense unless you've played it.

This article talks about a game that lets the player experience and interpret history from the perspectives of a number of characters. And its from the cinematic director of Grand Theft Auto. Can't wait, providing he does it right, but he sounds pretty sincere.


I surpassed 10,000 views of my blog last month. Lets pretend this this is an achievement, yay!