Small Shader Effect Applier

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
HugoBDesigner
Party member
Posts: 403
Joined: Mon Feb 24, 2014 6:54 pm
Location: Above the Pocket Dimension
Contact:

Small Shader Effect Applier

Post by HugoBDesigner »

Subject: Small Shader Effect Applier
HugoBDesigner wrote:Guys, I need some help. My computer doesn't render shaders, so I asked a friend to test this for me. I spent over an hour trying to fix it, and we still couldn't get it to work. I don't know much about shaders either. Could someone please help? Here's the latest version, by the way:

https://www.dropbox.com/s/ww1mjdt8m1r8d ... ffect.love

Any help is appreciated!
HugoBDesigner - my Twitter
HugoBDesigner - my Blog
User avatar
HugoBDesigner
Party member
Posts: 403
Joined: Mon Feb 24, 2014 6:54 pm
Location: Above the Pocket Dimension
Contact:

Re: Small Shader Effect Applier

Post by HugoBDesigner »

Guys, I know I might be sounding annoying and repetitive, but I really need help with this. This person needed this code today, so he asked me, and I made my best there. It's all done, but it is not rendering the shader effects. EVERYTHING else is working fine (well, the "hold enter" thing is not very much, but it's not a big deal). Please, could someone help?
HugoBDesigner - my Twitter
HugoBDesigner - my Blog
User avatar
zorfmorf
Prole
Posts: 33
Joined: Sat Mar 10, 2012 12:31 pm

Re: Small Shader Effect Applier

Post by zorfmorf »

Okay I took a quick look and got it working. The problem was that your shader handler (shader/init.lua) was written for an older löve version and could not work but because it catches basically any exception and prints strange error messages instead you did not notice.

* it used love.graphics.drawq (which doesnt exist anymore)
* it used PixelEffect (now called Shader)
* it required a global scale to be set (I set it to 1.0)
* it did some broken compatibility checks (Iremoved them completely)

If you use the attached init.lua it should work properly (and I'm pretty sure the shaders will work on your system as well).
Attachments
init.lua
(7.28 KiB) Downloaded 53 times
User avatar
HugoBDesigner
Party member
Posts: 403
Joined: Mon Feb 24, 2014 6:54 pm
Location: Above the Pocket Dimension
Contact:

Re: Small Shader Effect Applier

Post by HugoBDesigner »

Thank you VERY MUCH for your help, zorfmorf! I'll have my friend test it for me, since my computer doesn't loads shaders (it's a VERY outdated computer, but that's something I'm looking forward to "fix"). Really, thanks!
HugoBDesigner - my Twitter
HugoBDesigner - my Blog
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests