Would love to see something in the lines of the skew effect (as in FLASH)… [import]uid: 64174 topic_id: 10855 reply_id: 310855[/import]
+1 for skew support! [import]uid: 63276 topic_id: 10855 reply_id: 59162[/import]
Look here:
http://www.youtube.com/watch?v=AjrWRWc0ivg
lots of cool effect done in CoronaSDK including skrew effect. [import]uid: 12704 topic_id: 10855 reply_id: 59199[/import]
Yep, I’ve seen that before. Neat stuff. I’m looking for skew effects on images / sprites as part of the Corona SDK API.
Thanks for replying though! [import]uid: 63276 topic_id: 10855 reply_id: 59203[/import]
I noticed there’s been some responses from the Corona team, mainly Carlos, on this request. It sounds like it’s been tossed around as a feature addition, but seems to have never been implemented.
The most prominent post and response can be seen here, but Carlos’ comment is dated 6 months back:
http://developer.anscamobile.com/forum/2011/03/10/skew
Just hoping to re-open the request. I have a bunch of animations that have skew in them (created in Flash) that I’m having to completely rework (50+ hours of work) due to the fact that Corona SDK doesn’t support skewing. It would be AMAZING if there’s a quick path to get this added to the API. I know there are other priorities, but I’m hopeful that since it’s been talked about for a while that it can get incorporated into the product with minimal effort.
Thanks to the Corona team for considering my and other developers request for skew!
Regards,
Scott D Brooks [import]uid: 63276 topic_id: 10855 reply_id: 59205[/import]
But it’s part of CoronaAPI xScale, yScale, moving object, alpha and math like this:
[lua] if offY > 0 then
Group[2][j].x = Cos(a) * (radius - offY * -.5)
Group[2][j].y = Sin(a) * (radius - offY * -.5)
else
Group[2][j].x = Cos(a) * (radius - offY * 2.0)
Group[2][j].y = Sin(a) * (radius - offY * 2.0)
end
Group[2][j].rotation = angle[/lua]
[import]uid: 12704 topic_id: 10855 reply_id: 59206[/import]
How much will you pay if I do it for you in CoronaSDK? With multithreading As you see it’s all in. Just buy some old book about game programming. [import]uid: 12704 topic_id: 10855 reply_id: 59208[/import]
Hey gtatarkin,
Sorry for my confusion, but how is the alpha a part of that code? I think your concept of skewing using LUA is close as what I saw here:
http://developer.anscamobile.com/forum/2010/09/16/skew-tint-custom-fonts#comment-58137
Skewing as a means of scaling and rotating (you appear to just use positioning and rotation, which I think isn’t as close to an authentic skew as the above link’s method).
I appreciate your help on the LUA side, but really, I’m looking for a true API addition here, not a LUA solution.
[import]uid: 63276 topic_id: 10855 reply_id: 59209[/import]
Something like this? http://www.youtube.com/watch?v=A0-UMUEymcQ
Just LUA and CoronaSDK API. So you have all you need [import]uid: 12704 topic_id: 10855 reply_id: 59211[/import]
Essentially, yes. The image is artifacting like crazy, but I’m guess that because your source image was pixelated.
Is that effect created purely by manipulating the xScale, yScale, moving object? Seems like there’s more to it. Then again I’m a bit clueless in this area…
Thanks for your help gtatarkin.
[import]uid: 63276 topic_id: 10855 reply_id: 59213[/import]
This was very fast implementation and I just put small Corona icon and enlarge it on whole screen. This is why there is a lot of graphic artefacts on it. [import]uid: 12704 topic_id: 10855 reply_id: 59214[/import]
yea, figured. But this was merely done with positioning and rotation? It definitely looks like it’s warping. There must be scaling going on. Am I right? [import]uid: 63276 topic_id: 10855 reply_id: 59215[/import]
Yeeeep sir you do Easy matrix for scaling found on google:
http://stackoverflow.com/questions/673216/skew-matrix-algorithm [import]uid: 12704 topic_id: 10855 reply_id: 59218[/import]
Thanks gtatarkin! I’ll play around with this. [import]uid: 63276 topic_id: 10855 reply_id: 59221[/import]