Page 2 of 2
Re: Drawing an Image FROM and Image
Posted: Sat Dec 17, 2011 10:37 pm
by Robin
And on Ubuntu, there's a PPA. Shame it's not been updated in a while, though. I have it, but can't run TechnoCat's thing, since it doesn't have canvases (and I could probably fix it by renaming every Canvas to Framebuffer, but I'm too lazy for that.)
Re: Drawing an Image FROM and Image
Posted: Sat Dec 17, 2011 11:56 pm
by Taehl
TechnoCat wrote:Taehl wrote:Love, unfortunately, doesn't offer a way of drawing ribbons (yet?). I wish it did, though.
Create a blank framebuffer and draw to it without clearing. Every frame decrement the opacity of each pixel. I can't remember if 0.7.2 has the explicit framebuffer clearing or if 0.8.0 does.
EDIT: Indeed it requires LOVE 0.8.0. BEWARE! This example isn't dt based.
That's not a ribbon, that's more akin to a motion-blur filter. Ribbons are a chain of polygons with a texture wrapped or stretched across them. Like this (please forgive my crappy diagram):
Where purple are the control points (in this case, from the blue mouse trail), and red is the polygon wireframe made from it. Ribbons often allow the control points to be moved (to emulate gravity, for example), amongst other features.
Re: Drawing an Image FROM and Image
Posted: Sat Dec 17, 2011 11:57 pm
by bartbes
Robin wrote:Shame it's not been updated in a while, though.
Thanks for reminding me, r910 is built and being published as I'm writing this.
Re: Drawing an Image FROM and Image
Posted: Sun Dec 18, 2011 2:29 am
by NeoFLoyd
TechnoCat wrote:Taehl wrote:Love, unfortunately, doesn't offer a way of drawing ribbons (yet?). I wish it did, though.
Create a blank framebuffer and draw to it without clearing. Every frame decrement the opacity of each pixel. I can't remember if 0.7.2 has the explicit framebuffer clearing or if 0.8.0 does.
EDIT: Indeed it requires LOVE 0.8.0. BEWARE! This example isn't dt based.
Thanks to pk supplying a link, I tried out ribbons.love and it isn't exactly what I need. In fact, it's kind of far from it.
Re: Drawing an Image FROM and Image
Posted: Sun Dec 18, 2011 3:22 am
by pk
You're gonna have to post a screen shot or a sketch of what you are going for, because I'm stumped.
Re: Drawing an Image FROM and Image
Posted: Sun Dec 18, 2011 4:01 pm
by NeoFLoyd
pk wrote:You're gonna have to post a screen shot or a sketch of what you are going for, because I'm stumped.
All right.
This is rake.png against the in-game background:
Rake.png is draggable by the mouse. When it is dragged, I want raketrail.png to be drawn behind it, as if you're dragging rake.png through sand.
This is raketrail.png:
It's a 1x75 image a few varying shades of brown, if you can't tell.