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.
IndexProgramming Questions & HelpPrograms › optimizing stop-motion
Page Index Toggle Pages: 1
optimizing stop-motion (Read 1387 times)
optimizing stop-motion
Aug 16th, 2009, 9:49am
 
hi all.

i'm working on an installation that integrates the arduino with a series of stop-motion interactive pieces i'm creating in processing. ultimately, i may want to use png's but the image sizes are so big that i'm doing the sketches with jpgs for now. in either case however, after several minutes they seem to animate well. but - for those first few minutes, the animation is always choppy, like it is chugging on displaying the images. i am loading them in the setup, but am not sure what i can do to optimize the playback in draw().

i can post code if that helps - but any suggestions or examples would be a huge help. right now i'm animating through over 100 images, but this number will likely grow.

thank you!
Re: optimizing stop-motion
Reply #1 - Aug 17th, 2009, 5:31am
 
did you try the animated gif library should be really helpful
http://processing.org/discourse/yabb2/num_1199371244.html
http://www.extrapixel.ch/processing/gifAnimation/applet/
Re: optimizing stop-motion
Reply #2 - Aug 24th, 2009, 3:35pm
 
ah - thanks! i will take a look... it sounds like it is specific to GIFs however? i am using photos to create the stop-motion animation, so i'll need to use jpgs or pngs... anything similar done for those formats if this one won't do it?

thanks so much for the help!!
Re: optimizing stop-motion
Reply #3 - Aug 24th, 2009, 3:38pm
 
hmm no idea, sorry.
Are you only trying to animate your photos? if yes, there are much better solutions, of you want some interactivity than maybe flash would be a way
Re: optimizing stop-motion
Reply #4 - Aug 24th, 2009, 11:28pm
 
You probably see the Java's garbage collector at work: it can make the program to pause while it cleans memory you no longer use (the space taken by the images).
I am not a specialist (topic is complex in Java, there are several GC with lot of settings...) but perhaps you can tweak your settings to improve this (collecting on demand instead of waiting for a given amount of garbage?).
Page Index Toggle Pages: 1