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 › Boids program using animated sprites
Page Index Toggle Pages: 1
Boids program using animated sprites (Read 667 times)
Boids program using animated sprites
May 3rd, 2009, 4:43pm
 
I've implemented a simple boids program that I'm trying to make 3d.  I'm using animated sprites to load in as my boids, but when I load them in, they are no longer animated.  Any ideas?
Code:

 void drawBoids()
 {
    //stroke(pinkBoids);
    //fill(random(255), random(255), random(255));
   
   
    PImage boid;
    boid = loadImage("fishswim1.gif");
    image(boid, xpos, ypos);
   
 }
Re: Boids program using animated sprites
Reply #1 - May 3rd, 2009, 5:37pm
 
Do you just load the gif?  processing still doesnt support animted Gifs by default, but you can easily use this Library

http://extrapixel.ch/processing/gifAnimation/

btw would love to see your 3d boid example...
Re: Boids program using animated sprites
Reply #2 - May 3rd, 2009, 6:09pm
 
Thanks alot - this really helps me.  I will be glad to share when I'm finished Smiley
Page Index Toggle Pages: 1