Advanced Transformations

12 replies [Last post]
trebor
User offline. Last seen 2 years 11 weeks ago. Offline
Joined: 1 Mar 2010

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!

Replies

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 6 weeks 5 days ago. Offline
Alumni
Joined: 22 Jun 2009

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

Carlos

Wizem
User offline. Last seen 21 weeks 6 days ago. Offline
Joined: 10 Aug 2010

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?)

Wizem
User offline. Last seen 21 weeks 6 days ago. Offline
Joined: 10 Aug 2010

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).

Tom
User offline. Last seen 28 min 17 sec ago. Offline
Staff
Joined: 13 Jul 2010

Skewing is currently not supported.

-Tom

illdevgames9
User offline. Last seen 40 weeks 5 days ago. Offline
Joined: 8 Feb 2011

please add transformations.. this essential to rendering perspective. is this anywhere on the roadmap?

MBD's picture
MBD
User offline. Last seen 1 hour 10 sec ago. Offline
Joined: 14 Sep 2010

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

rbaffy
User offline. Last seen 1 week 1 hour ago. Offline
Joined: 22 Feb 2010

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?

clockworked24.7's picture
clockworked24.7
User offline. Last seen 5 days 24 min ago. Offline
Joined: 21 May 2011

+1 for skewing support! Thanks!

jkrassman's picture
jkrassman
User offline. Last seen 6 hours 31 min ago. Offline
Joined: 4 Aug 2011

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

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 6 weeks 5 days ago. Offline
Alumni
Joined: 22 Jun 2009

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.

Oaf's picture
Oaf
User offline. Last seen 1 hour 8 min ago. Offline
Joined: 24 Jun 2009

+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 :) [ display.drawTexturedPoly( imageSheet, { x0, y0, tx0, ty0 .... xN, yN, txN, tyN } ) ]

:)

jesse.manuel
User offline. Last seen 52 min 58 sec ago. Offline
Joined: 6 Oct 2011

+1

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.