J
J
JonniK2012-10-10 14:16:59
iOS
JonniK, 2012-10-10 14:16:59

Vector graphics with animation on iOS inside the app?

We are looking for a way to display animated vector graphics inside a native iOS application.
Why a vector? The artist draws the characters in vector, then drives them into Flash and animates them. There are many items and animations for characters, and if we do frame-by-frame sprite animation, then when adding a new item, we will need to render all animation options for all options for the appearance of the characters, because. skeletal sprite animation looks poor.
The application is made in xcode in Objective-C. Now we have settled on the version from Adobe - Flash Toolkit for CreateJS ( www.adobe.com/products/flash/flash-to-html5.html )
We display the received in UIWebView. Everything basically works, we can replace one element with another and start the animation separately for each element (what you need). But there are performance issues, so a more complicated vector can no longer be used. Yes, and the solution looks somehow crutch and not native.
Perhaps there are some other options that we have not considered?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
An, 2012-10-10
@Flanker_4

I am by no means an expert in this, but nevertheless I decided to spend a couple of minutes looking for a solution to your problem: what if you use svg?
As far as I remember, it allows you to implement animation. I found several libraries for rendering svg under ios, but all of them do not support animation. Maybe I searched badly.
And here you could give up, but this library https://github.com/SVGKit/SVGKit LIKE will allow you to animate layers through core animation. The only question is where to get the parameters for the animation (for example, manually pull it from svg )
Well, or another option is to write your own svg renderer with animation support.
In any case, there probably won't be a ready-made solution (except webview's).

E
Egor Merkushev, 2012-10-10
@egormerkushev

You made a strange decision. If the original content is on flash, then you need to assemble the application in flash. I'm not special on flash, but it seems to be here .
Fast vector graphics are native vector graphics by means of, for example, Quartz 2D .

S
spayeler, 2012-10-10
@spayeler

there is SwiffCore , but I have not used it yet, so I can not say how well it does

S
s0L, 2012-10-11
@s0L

You can use Cairo or AGG to render. True, you have to animate by hand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question