Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 3, 2008, 05:21 PM   #1
steve1717
macrumors newbie
 
Join Date: Jul 2007
PNG-based Animations

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?
steve1717 is offline   0 Reply With Quote
Old Jul 3, 2008, 05:30 PM   #2
clevin
macrumors G3
 
clevin's Avatar
 
Join Date: Aug 2006
there is animated PNG semi-standard, APNG, firefox 3 and Opera 9.5 both support it now.



if you are using firefox 3 or Opera 9.5, this image should be rotating.
clevin is offline   0 Reply With Quote
Old Jul 3, 2008, 05:34 PM   #3
Cabbit
macrumors 68020
 
Cabbit's Avatar
 
Join Date: Jan 2006
Location: Scotland
Quote:
Originally Posted by clevin View Post
there is animated PNG semi-standard, APNG, firefox 3 and Opera 9.5 both support it now.



if you are using firefox 3 or Opera 9.5, this image should be rotating.
that motion looks very fluid, never thought anyone used apng.
__________________
Nom nom nom eating cake!
Cabbit is offline   0 Reply With Quote
Old Jul 3, 2008, 05:42 PM   #4
steve1717
Thread Starter
macrumors newbie
 
Join Date: Jul 2007
That is really cool but seemingly not compatible for iPhone apps. Any ideas for creating fluid animations using PNG's on the iPhone?
steve1717 is offline   0 Reply With Quote
Old Jul 3, 2008, 05:49 PM   #5
clevin
macrumors G3
 
clevin's Avatar
 
Join Date: Aug 2006
Quote:
Originally Posted by babyjenniferLB View Post
that motion looks very fluid, never thought anyone used apng.
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"....

Last edited by clevin; Jul 3, 2008 at 06:05 PM.
clevin is offline   0 Reply With Quote
Old Jul 3, 2008, 06:39 PM   #6
ThunderSkunk
macrumors 68000
 
ThunderSkunk's Avatar
 
Join Date: Dec 2007
Location: Durango, Co
Quote:
Originally Posted by clevin View Post


if you are using firefox 3 or Opera 9.5, this image should be rotating.
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.
ThunderSkunk is offline   0 Reply With Quote
Old Jul 3, 2008, 06:47 PM   #7
clevin
macrumors G3
 
clevin's Avatar
 
Join Date: Aug 2006
just a mention. there is an addon for firefox 3 to edit APNG

https://addons.mozilla.org/en-US/firefox/addon/5519
clevin is offline   0 Reply With Quote
Old Jul 13, 2008, 08:32 AM   #8
louden
macrumors 65816
 
louden's Avatar
 
Join Date: Dec 2003
Location: Seattle
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?
__________________

Dell Pentium 2 with 500 MB HD Windows 95
Compaq iPaq w/ 64MB of Ram
louden is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Converting PXM to PNG Kaji Design and Graphics 1 Nov 7, 2013 04:04 PM
New Animations are SO MUCH BETTER [in 7.0.3] kre62 iOS 7 259 Oct 28, 2013 01:17 PM
Animations TrenttonY iOS 7 1 Jun 12, 2013 12:15 AM
View based vs Window based application Vishwas Gagrani iPhone/iPad Programming 1 Oct 14, 2012 05:25 PM
Idea: View-Based Notifications (Instead of Focus-Based) faroZ06 OS X 10.8 Mountain Lion 0 Jul 28, 2012 12:32 PM

Forum Jump

All times are GMT -5. The time now is 09:09 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC