The Swapper is an atmospheric 2D puzzle platformer, constructed using clay models and other everyday materials for a uniquely detailed look and feel. The game takes place on an abandoned space station and tackles the implications of the ‘Swapper’ - a device that can clone the user and transfer consciousness between different bodies. Coming Spring 2013!

Report article RSS Feed The Swapper - Post Fx

The new engine now supports different sorts of modifications made to the image before it's shown on the screen.

Posted by FacepalmGames on Apr 5th, 2010

Having a background of working on some movie stuff I can't underestimate the way in which colors can affect the atmosphere of a scene, be it game or movie. Thus it was clear that color correction/manipulation functionality should also be available in the new engine.

Among that I added support for screen distortions which can be extremely useful when wanting to create a perception of glass, heat, explosion shockwaves or being drunk and many other things.


Technobabble

The way in which the distortions work is pretty common and simple. Before rendering the actual scene to the screen a texture is created which has it's base color as dull brown ( precisely RedGreenBlue 127, 127, 0 or 0.5, 0.5 ,0 ). Different sorts of psychedelically colored shapes are then rendered on the texture. The color in the texture tells what is the relation between a pixel's position in the original rendering and when the rendering is shown on the screen. The red component of the color tells if the pixel drawn on the screen should be picked from left or right relating to the position of the current texture coordinate (sounds more complex that it is). Accordingly the green component tells how much the position should be moved up or down. When the final image is drawn on the screen each pixel gets an offset based on the color in the distortion texture.

The biggest benefit from that approach is the fact that the same normal maps that are used when calculating the lighting can also be used to distort the image. Thus the rock composed from the the textures shown below could be made look glassy just by telling the game it should be rendered that way. No additional textures would be required.


Stay tuned! You can follow the development on these places:
Follow our blog! Follow our channel on YouTube! Follow us on Mod DB! Follow us on Twitter!
Icons mainly by Iiro Jäppinen

Post comment Comments
Replic_nl
Replic_nl Apr 6 2010, 9:48am says:

Looks great, i like it!

+2 votes     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
The Swapper
Platforms
Windows, Mac, Linux
Developed By
FacepalmGames
Engine
Custom Built
Contact
Send Message
Official Page
Facepalmgames.com
Release Date
TBD
Game Watch
Track this game
News
Browse
News
Report Abuse
Report article
Related Games
The Swapper
The Swapper Indie Single Player Platformer
Related Engines
Custom Built
Custom Built Commercial Released Sep 1, 2007
Related Groups
Indie Devs
Indie Devs Hobbies & Interests group with 1,095 members