The < - image(click to see larger view) showcase my experiment with shader in Cocos2d (v2.0). A modified box blurring algorithm was used in the fragment shader and this is only applied to sprites (each individual building is a separate sprite) that are above or below the two hardcoded threshold (y-position). The blurring algorithm was modified in such a way that the amount of blur applied to the sprite is dependent on how far above or below either y thresholds the sprite is. Continue reading Tilt Shift Effect in Cocos2d (v2.0+)
The above video demonstrates an experiment I did in an attempt to reproduce the illusionary 3D Parallax effect on a 2D plane using flat images. Its just for fun really. I saw the video of this effect for iOS7 and I was asking myself if I could reproduce it using only sprites.
Continue reading 3D Parallax Effect On 2D Plane