Page 1 of 3

[library] shine - post processing effects for everyone

Posted: Sun Jan 11, 2015 11:16 pm
by vrld
Shine is a postprocessing effect repository for LÖVE.

Have you ever been in this situation? You have created the best game ever (really this time), but you feel that there is something missing? The graphics are just too sharp, too saturated, too dull, too ... boring? You have seen all these awesome demos in this thread but just cant wrap your head around shaders?

shine to the rescue!

shine is a repository of easy to use postprocessing effects for LÖVE. All it takes are three lines of code:

Code: Select all

local shine = require 'shine'
blur = shine.boxblur()
blur(function() draw_my_stuff() end)
You can personalize your effects by just setting a value!

Code: Select all

blur.radius = 3
You can also chain multiple effects for maximum ... effect :ehem:

Code: Select all

hipster = desaturate:chain(grain):chain(vignette)
The code is hosted on github as is the documentation.

Demo .love coming soon(ish).
EDIT:
As promised: A demo! It shows all currently implemented effects (click on "Effect" to open a list of effects). You can play around with the parameters to see how they affect the effect. Have fun!

EDIT2:
New demo: glow, adjustable grainsize in filmgrain and second image

Re: [library] shine - post processing effects for everyone

Posted: Mon Jan 12, 2015 12:52 am
by Jeeper
Simply amazing, well done!

I'm looking forward to trying it out :)

Re: [library] shine - post processing effects for everyone

Posted: Mon Jan 12, 2015 8:13 am
by Fenrir
I'll definitely have a look! Nice work!

Re: [library] shine - post processing effects for everyone

Posted: Mon Jan 12, 2015 10:22 am
by undef
Nice!
That's something I will definitely have a look at! :)

Re: [library] shine - post processing effects for everyone

Posted: Mon Jan 12, 2015 4:11 pm
by Roland_Yonaba
That is outstanding. It sould like a good candidate for Hump, to me.

Re: [library] shine - post processing effects for everyone

Posted: Mon Jan 12, 2015 10:43 pm
by vrld
Glad you like it!
Roland_Yonaba wrote:It sould like a good candidate for Hump, to me.
I'd like to keep the projects separated - hump is much more mature than the infantile shine. I'd also like to make this sort of a collaborative project, where everyone who wants can join in and add new shaders - hence the (as of now defunct) section "How to add your effect to the repository" in the wiki.

Re: [library] shine - post processing effects for everyone

Posted: Tue Jan 13, 2015 1:42 am
by CaptainMaelstrom
I get this error:
error
error
capture.PNG (48.64 KiB) Viewed 11262 times

Re: [library] shine - post processing effects for everyone

Posted: Tue Jan 13, 2015 8:41 am
by szensk
CaptainMaelstrom wrote:I get this error:
capture.PNG
AMD card?

Re: [library] shine - post processing effects for everyone

Posted: Tue Jan 13, 2015 10:22 am
by Roland_Yonaba
CaptainMaelstrom wrote:I get this error -[snip]-
I made a pull request where I included a small change to this shader. Can you give it a shot and see if it works for you ?

Re: [library] shine - post processing effects for everyone

Posted: Tue Jan 13, 2015 10:30 am
by vrld
Updated the demo. Does it work now?