We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
video stretch effect (Read 644 times)
video stretch effect
Jun 9th, 2008, 8:33pm
 
hi,

Does anyone knows how to create a video stretch effect (like stretch effect on photo booth mac os x).

Thanks
Re: video stretch effect
Reply #1 - Jun 12th, 2008, 9:49pm
 
Spyro,

Basically, you need to convert the image (frame) from Cartesian coordinates to polar, change what you need and convert back to Cartesian coordinates (you would need to interpolate the values in order to avoid artifacts)..

Here is a link  that you might find useful:
http://dem.ocracy.org/libero/photobooth/

It implements several several photobooth-like "filters" and gives away the code as well. It is in cpp and uses GLSL shaders

I have been trying to implement this in openframeworks, but I don't seem to be able to make the shaders work...

It should be a matter of a couple of hours work for someone that is comfortable with opengl shaders.

In principle you don't need to implement it using shaders, but it can run on the cpu. I wouldn't know though how it would do in terms of performance (framerate).

By the way, someone has already implemented it in vvvv

Afta gia twra,

Nikolas
Page Index Toggle Pages: 1