Advanced Transformations

Is there a way to do rectangle->trapezoidal and rectangle-> parallelogram transformations? Things like the photoshop skew, distort, warp, and perspective transformations in LUA/Corona?
Is there a sample of OpenGL apis that perform similar things that I can use to train myself?

Thanks in advance guys!
[import]uid: 5494 topic_id: 559 reply_id: 300559[/import]

Not now. Will add the request to our 1.2 feature set.

Carlos [import]uid: 24 topic_id: 559 reply_id: 1100[/import]

Is skewing supported by now? I was unable to find anything on it in the docs. If it’s not supported, is there a way I can implement a skewing animation myself? (it is my understanding I need to access the internal matrices that transformations are created from, and as far as I can see this is not possible?) [import]uid: 8145 topic_id: 559 reply_id: 5438[/import]

This is important for me, as we’re currently porting a game from flash, where some character animations were creating by skewing. I’ve written an importer and animation logic that works for all other transformations, but skewing is a problem.

Any suggested workarounds?

To reiterate: I need to implement skewing identical to flash’s skew (in a manner that will allow me to animate an image with skewing). [import]uid: 8145 topic_id: 559 reply_id: 5475[/import]

Skewing is currently not supported.

-Tom [import]uid: 7559 topic_id: 559 reply_id: 6217[/import]

please add transformations… this essential to rendering perspective. is this anywhere on the roadmap? [import]uid: 35826 topic_id: 559 reply_id: 40621[/import]

Did this ever get answered? I also have the need to distort or bend an image (sprite) on command.

[import]uid: 9046 topic_id: 559 reply_id: 52402[/import]

Agreed (and bump)! I could really use a skew command with a project I’m working on now. Any time-frame on getting this kind of transform support? [import]uid: 5313 topic_id: 559 reply_id: 55766[/import]

+1 for skewing support! Thanks! [import]uid: 63276 topic_id: 559 reply_id: 58947[/import]

Carlos, wouldn’t it be nice if we could have this in the near future and then close this 2 years old thread?

Best regards, Joakim [import]uid: 81188 topic_id: 559 reply_id: 93824[/import]

in between this thread and trying to put something out… legal got in the way… due in part of my use of it in my curve fitting routine which we can’t open source.

c. [import]uid: 24 topic_id: 559 reply_id: 93986[/import]

+1 for exposing the transformation matrix of an image rectangle, like it is in Flash/Actionscript. It would make doing skews and faked 3D just that bit easier.

Failing that, you could make it possible to draw polygons that can be texture mapped :slight_smile: [display.drawTexturedPoly( imageSheet, { x0, y0, tx0, ty0 … xN, yN, txN, tyN } )]

:slight_smile: [import]uid: 276 topic_id: 559 reply_id: 102660[/import]

+1 [import]uid: 95944 topic_id: 559 reply_id: 105514[/import]