@pie@ar2rsawseen 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 ?)
@jeromesq 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)
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
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