Notifications
Mobile 2D depth of field effect
Showcase
315
4
A 2D depth of field effect for mobile devices, which uses a grayscale mask to specify the depth of a 2D image.
Trinidad Sibajas Bodoque
Programmer - Programmer
14
Comments
Programmer
doradoro indie gamesmmm every layer have a b&w blurred "copy" isn't it?
It was a while ago and I don't remember the specifics, but something like that. The blurred images were created at runtime at initialization, and compacted into one texture.
0
dg
mmm every layer have a b&w blurred "copy" isn't it?
0
Programmer
Hi @doradoro indie games , sorry, I didn't see your comment. It's nothing fancy, apart from the image it requires creating beforehand a grayscale representation of the "depth" of the picture (so, say, black for the nearest point and white for the furthest). It uses that grayscale image to blur only some parts of the picture, and also scales slightly some parts to make the effect more noticeable.
0
dg
Can you please explain a bit?
0