Page 1 of 1

Ghosting With Shaders

Posted: Sat Jun 16, 2012 1:26 am
by Puzzlem00n
Hey, haven't been on here in a while, huh? Well, I'll get right to the question. You see this thread here?
viewtopic.php?f=4&t=2393&p=25806&hilit= ... %2A#p25806
Well, I basically want to do the same thing he does, but that thread was from the before time, where shaders didn't exist yet! So, is there any way to make this simple ghosting with shaders? I've been looking around for an hour and I can't seem to find anything. Thanks in advance!

Re: Ghosting With Shaders

Posted: Sat Jun 16, 2012 2:55 pm
by bartbes
You really don't need (or want!) shaders, you'll just want to use a canvas.
Every frame you draw a mostly-transparent rectangle with the background color over your canvas, and then draw the new scene over it, that should give you a nice fading ghost.

Re: Ghosting With Shaders

Posted: Sat Jun 16, 2012 3:28 pm
by Puzzlem00n
Alright, if you say so! I'll give that a try!

Re: Ghosting With Shaders

Posted: Sat Jun 16, 2012 4:00 pm
by TechnoCat
bartbes wrote:You really don't need (or want!) shaders, you'll just want to use a canvas.
Every frame you draw a mostly-transparent rectangle with the background color over your canvas, and then draw the new scene over it, that should give you a nice fading ghost.
I had double/triple buffering problems with this method a while back.

https://bitbucket.org/rude/love/issue/1 ... ear-breaks

Re: Ghosting With Shaders

Posted: Sat Jun 16, 2012 6:09 pm
by bartbes
You weren't using canvases, TechnoCat.