PNG-based Animations

Discussion in 'iOS Programming' started by steve1717, Jul 3, 2008.

  1. macrumors newbie

    Joined:
    Jul 18, 2007
    #1
    What do you guys think is the best way to compose an animation made up of frames of PNG files in an iPhone app?

    I have tried several approaches:

    - creating UIImage objects using both imageNamed: and initWithContentsOfFile: methods and then placing them in a UIImageView in sequence using NSTimer

    - putting the UIImage objects into an animated UIImageView

    I would like to generate faster animations but the 100k PNG files as frames seem to bog things down. Am I missing a more efficient way of doing this?:confused:
     
  2. macrumors G3

    clevin

    Joined:
    Aug 6, 2006
    #2
    there is animated PNG semi-standard, APNG, firefox 3 and Opera 9.5 both support it now.

    [​IMG]

    if you are using firefox 3 or Opera 9.5, this image should be rotating.
     
  3. macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #3
    that motion looks very fluid, never thought anyone used apng.
     
  4. thread starter macrumors newbie

    Joined:
    Jul 18, 2007
    #4
    That is really cool but seemingly not compatible for iPhone apps. Any ideas for creating fluid animations using PNG's on the iPhone?
     
  5. macrumors G3

    clevin

    Joined:
    Aug 6, 2006
    #5
    PNG group is filled with naysayers, MNG is crappy, APNG is rejected too, currently PNG group has no reasonable animation standard. Its all up to browser developers. Only KHTML supports MNG as of now, in comparison, APNG has largest support currently.

    I guess one of the original goal of PNG is to present a "still image"....
     
  6. macrumors 68000

    ThunderSkunk

    Joined:
    Dec 31, 2007
    Location:
    Durango, Co
    #6
    Hmmm. I like the sound of a png animation. Full color, transparency, lossless... sounds really nice. Get on the ball, Apple. All I get with safari is a dead squirrel.
     
  7. macrumors G3

    clevin

    Joined:
    Aug 6, 2006
  8. macrumors 65816

    dgdosen

    Joined:
    Dec 13, 2003
    Location:
    Seattle
    #8
    What tools do you use to best create icons/png files?

    I'm assuming it's Adobe Illustrator, but (I'm a newb at graphics) that application is not very intuitive.

    Anybody have good recommendations?
     

Share This Page