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
Image Sequence (Read 878 times)
Image Sequence
Sep 23rd, 2008, 8:44am
 
I'm looking for a way to play back an image sequence.

Is there a way to load the entire sequence into memory first?

My end use is playing PNGs with alphas as textures on geometry.

Thank you all for your comments.
Re: Image Sequence
Reply #1 - Sep 24th, 2008, 4:24pm
 
Something like this ?

http://processing.org/learning/topics/sequential.html

or:

http://processing.org/learning/topics/animatedsprite.html

Then i guess you can simply use the image as texture.
Re: Image Sequence
Reply #2 - Sep 24th, 2008, 6:20pm
 
I discovered that a quicktime can contain PNGs with aplhas.  In processing the alpha channel is applied by masking the movie with itself.

I like how this works.  Its nice and neat; you only need to render one QT with 4 channels and add one more line of code to get the aplha channel rendered in Processing.

I used GlGraphics to grab frames from the movie and place them into a texture.  I then bound those textures to my geometry.

I'll post some code when I get home.
Page Index Toggle Pages: 1