Paper draw prototype

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
sebast
Prole
Posts: 27
Joined: Tue Nov 08, 2011 2:17 pm

Paper draw prototype

Post 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
Attachments
lovepaper_bis.love
(3.16 MiB) Downloaded 441 times
Last edited by sebast on Tue Nov 22, 2011 1:27 pm, edited 2 times in total.
User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

Re: Paper draw prototype

Post by Ellohir »

"Cannot create FrameBuffer: not supported by your OpenGL implementation"

Does it require Love 8.0.0 or is this a GPU issue?
User avatar
sebast
Prole
Posts: 27
Joined: Tue Nov 08, 2011 2:17 pm

Re: Paper draw prototype

Post 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 :(
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Paper draw prototype

Post 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.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Paper draw prototype

Post 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?
User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

Re: Paper draw prototype

Post 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
User avatar
sebast
Prole
Posts: 27
Joined: Tue Nov 08, 2011 2:17 pm

Re: Paper draw prototype

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests