Still won’t sort the size problems. I think you should use vector graphics myself. There are some apps which will convert - inkscape will do it, but there is a professional one which does it much better.
Spine.
But what we really need for this is video playback with alpha channel.
but the video is native object and it can’t be added to group and to change the order of the video object…
+1
or +10000000
I personally don’t have the need for video with alpha playback, but I am surprised by the fact that it’s so hard to do. For clarity’s sake: I’m not critical of Corona engineers, because if it was dead simple they would have implemented it already, but I would have thought that would be a pretty straightforward thing in openGL, mapping a video texture to a polygon.
Not so, apparently!
http://coronalabs.com/blog/2013/12/19/holiday-surpril-time-effects/
shape.fill = { type=“camera” }
why not
shape.fill = { type=“video” ,src=“foo.mp4” }
I stand corrected! I thought I’d seen something on the blog a while ago about video feed, webview and even camera feed to a polygon. But no alpha channel on the video then? Even, so, if the resolution is high enough, with clever compositing you can achieve amazing results I presume.
It will only work if you build your animations using Flash (and even then, only if you separate out the components), but I’ve had good luck creating full-screen iPad-sized animations using Animo (formerly called “SpriteLoq”). It’s not the simplest of procedures, especially since Animo’s built-in Corona support was based on Graphics 1.0, and since it’s now owned by a CL competitor, it likely won’t get an update - but you can get it to work under G2.0 with some effort. Essentailly you isolate your Flash animation down to smaller components, then export those individual components as SWF files, which Animo converts into spritesheet data (you can combine multiple SWFs into a single spritesheet). Then you reassemble them in your code, layering as needed. I’ve taken full-screen animations that would have never fit onto even a 4096x4096 sheet if rendered as full-sized frames, and squeezed them into 1024x2048 sheets by breaking them down and using Animo. It’s a bit labor-intensive, but the results are good if the conditions are right.
Something that I really like about Animo is that it automatically places your spritesheets on the Corona stage where they were on the Flash canvas - so you just give all the individual components an x/y value of 0, 0 and they are lined up properly. Just throw them all into a display.newGroup() and you can move the animation as a whole by adjusting the group’s x/y values. It’s one less thing to worry about.
Here’s a link to Animo (there’s a free trial): http://lanica.co/products/animo/spriteloq/
i do some animation from flash
you can export sprite sheet directly from flash in to corona
but still if the animation is big and lots of frames
there is a problem
and if the animatinon going to be retina style its going to huge !
Hey guys,
Just trying to drum up some support for rendering videos to texture for fills (similar to how it’s done with the device camera). If you haven’t already, please go to the feature request page and toss some votes in. It’s been a long time coming, and I think we would all benefit from seeing this happen sooner than later!
Here’s where you can vote: http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3578468-video-render-to-texture
Still won’t sort the size problems. I think you should use vector graphics myself. There are some apps which will convert - inkscape will do it, but there is a professional one which does it much better.