Drawing an Image FROM and Image
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Drawing an Image FROM and Image
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.)
Help us help you: attach a .love.
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: Drawing an Image FROM and Image
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):TechnoCat wrote: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.Taehl wrote:Love, unfortunately, doesn't offer a way of drawing ribbons (yet?). I wish it did, though.
EDIT: Indeed it requires LOVE 0.8.0. BEWARE! This example isn't dt based.
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.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Drawing an Image FROM and Image
Thanks for reminding me, r910 is built and being published as I'm writing this.Robin wrote:Shame it's not been updated in a while, though.
Re: Drawing an Image FROM and Image
TechnoCat wrote: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.Taehl wrote:Love, unfortunately, doesn't offer a way of drawing ribbons (yet?). I wish it did, though.
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
You're gonna have to post a screen shot or a sketch of what you are going for, because I'm stumped.
ALL CREATURE WILL DIE AND ALL THE THINGS WILL BE BROKEN. THAT'S THE LAW OF SAMURAI.
Re: Drawing an Image FROM and Image
All right.pk wrote:You're gonna have to post a screen shot or a sketch of what you are going for, because I'm stumped.
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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests