Page 1 of 1

Small Shader Effect Applier

Posted: Fri May 23, 2014 10:22 pm
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!

Re: Small Shader Effect Applier

Posted: Sat May 24, 2014 4:44 am
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?

Re: Small Shader Effect Applier

Posted: Sat May 24, 2014 3:50 pm
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).

Re: Small Shader Effect Applier

Posted: Sat May 24, 2014 6:38 pm
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!