It looks like you're new here. If you want to get involved, click one of these buttons!

- 7.3K All Categories
- 8 Help with translations
- 4K General questions
- 97 Roadmap
- 321 Game & application design
- 292 Plugins
- 65 User experience
- 69 Marketplace
- 271 Code snippets
- 33 Building a team?
- 245 Suggestions & requests
- 342 Announce your apps made with Gideros.
- 86 Step by step tutorials
- 603 Bugs and issues
- 174 Introduce yourself
- 187 Announcements
- 79 Forum talk
- 382 Relax cafe

jeromegsq
Member

Hello,

I want to make something like this image in gideros. How can i do it ?

I try on a sprite :

local t = Transform.new()

t:skew(45, 0)

t:apply(self)

But, it only rotate

Thank you

I want to make something like this image in gideros. How can i do it ?

I try on a sprite :

local t = Transform.new()

t:skew(45, 0)

t:apply(self)

But, it only rotate

Thank you

Don't miss the ball : https://play.google.com/store/apps/details?id=fr.toastapp.dontmisstheball

The Gobb : https://play.google.com/store/apps/details?id=fr.toastapp.thegobb

The Gobb : https://play.google.com/store/apps/details?id=fr.toastapp.thegobb

skew.png

512 x 512 - 81K

## Comments

http://docs.giderosmobile.com/reference/gideros/Matrix#Matrix

However to achieve the effect you're asking I suppose I would use a textured Mesh.

I think you just need to understand what @hgy29 did to create the Star Wars text effect here http://giderosmobile.com/forum/discussion/5518/creating-star-wars-like-text/p1

Ok thank you very much, but can you please explain me how work this matrix ?

Because it will help me for my problem and for the texture on a 3D object too.

M11 M12 M21 M22 what is it ? Is this the 4 points of a sprite/texture ?

Tx Ty for me their are for the translation right ?

Also, can you tell me what the min and max value (for exemple color is between 0 and 255, here is this between 0 and 1 ?)

Thank you

The Gobb : https://play.google.com/store/apps/details?id=fr.toastapp.thegobb

I didn't find this referenced anywhere, so take this as an unofficial answer by my tests it seems that matrix parameters are used as follows:

Matrix.new(scaleX, skewX, skewY, scaleY, translationX, translationY)

It seems that Matrix can do only "Affine Transformations" - http://en.wikipedia.org/wiki/Affine_transformation

I suppose there are no min/max values: but I am not a math guru (and I have no knowledge on matrices operations )

If I understood correctly, these should be multiplications on existing values (values taken from the Sprite on which you are applying the matrix transformation) - therefore, you have to see for yourself which min/max are suitable for your goal

https://github.com/ar2rsawseen/GiderosCodingEasy/blob/master/GiderosCodingEasy.lua#L1309

Maybe this info is worth to be included in Matrix docs for future reference