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!

Post news Report content 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 on

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

Looks great, i like it!

Reply Good karma Bad karma+2 votes
Post a comment

You are not logged in, your comment will be anonymous unless you join the community. Or sign in with your social account:

Icon
The Swapper
Platforms
Windows, Mac, Linux
Creator
FacepalmGames
Engine
Custom
Contact
Send Message
Release date
Game watch
Start tracking
News
Browse
News
New
Post news
Share
Related Games
The Swapper
The Swapper Platformer
Related Groups
Indie Devs
Indie Devs Hobbies & Interests with 1,347 members