Page 1 of 1

Paper draw prototype

Posted: Tue Nov 22, 2011 12:10 pm
by sebast
I'm trying to make 2D 'paper toon' effect. I'm talking about those little animations you make during (boring) classes on your agenda, one pose after another, and play them by releasing sheets one by one at regular rate with your thumb. Sorry for my english, I have just no idea how to explain it better.

I want to design a drawing API that makes it completely transparent to the user (he uses lines, circles and polygons as usual)
Currently, only lines and circles are supported, I'm working on the "random" effect (think about switching to continuous (perlin) noise)

A point that really needs improvement: the fade effect (the thing that hurts your eyes and makes you click on the close button) is supposed to render the effect of the next sheet of paper shadowing the previous one... maybe I should render two frames at once and make some sort of blending with them ?

I would be happy to have your advises and feedbacks.

PS: please don't take too much care about efficiency, this is a highly unoptimized prototype...

EDIT: this one doesn't hurt (or less at least); press 'b' to remove background shaking effect, 'f' for fading effect and 'l' for 'hand drawn' effect

Re: Paper draw prototype

Posted: Tue Nov 22, 2011 1:15 pm
by Ellohir
"Cannot create FrameBuffer: not supported by your OpenGL implementation"

Does it require Love 8.0.0 or is this a GPU issue?

Re: Paper draw prototype

Posted: Tue Nov 22, 2011 1:26 pm
by sebast
It should works with both 8.0 and 7.2 versions of LÖVE, it uses framebuffers still (it shouldn't but this way was quicker to code) sorry :(

Re: Paper draw prototype

Posted: Tue Nov 22, 2011 1:38 pm
by TechnoCat
Ellohir wrote:"Cannot create FrameBuffer: not supported by your OpenGL implementation"

Does it require Love 8.0.0 or is this a GPU issue?
GPU issue.

in 0.8.0 they are called canvases.

Re: Paper draw prototype

Posted: Tue Nov 22, 2011 1:41 pm
by coffee
It worked well for me (0.72/OSX). Nice funny cool effects and interesting vector project. I wish the best for the dev of this.:)
EDITED: Fade effect behaves like a strobe. Too fast? Something wrong?

Re: Paper draw prototype

Posted: Tue Nov 22, 2011 1:58 pm
by Ellohir
sebast wrote:It should works with both 8.0 and 7.2 versions of LÖVE, it uses framebuffers still (it shouldn't but this way was quicker to code) sorry :(
Don't be sorry, it's my fault. I'm the first to notice that I miss a lot of cool things like bloom and images not PO2 but I can't do anything about it xD That's why I don't know that FrameBuffers or Canvas are, they wouldn't work for me.

Damm, the moment I get a new GPU I'm going to make games full with stupid effects just to see them xD


Ehm... Nice work I guess xD

Re: Paper draw prototype

Posted: Tue Nov 22, 2011 2:02 pm
by sebast
coffee wrote:Fade effect behaves like a strobe. Too fast? Something wrong?
yes and no... the goal is to recreate the effect of sheet of paper getting on top of the previous one, inducing a shadow on the previous frame.

The actual code draws a black overlay that progressively darken until next frame. Since frames are drawn at roughly 15fps, that results in an unwanted stroboscopic effect.

I am actually looking for a better way to render this.