Hey, this is really annoying me.
I have a big code, but essentially, this part comes to transformation of a BitmapData to triangle points, using affine transformation.
Also – I know that BitmapData is rectangular – the last, fourth point of the transformation is just the first one reflected over the axis defined by the other two points.
A small thing so you can see which point is which one:
1........2
. / / / /|
./ / / /
. / / / |
./ / /
. / / |
./ /
. / |
./
3 - - - -4 - 4th point reflected
This whole process would come to scaling, rotating and skewing the BitmapData based on the angles between the points…
But somehow my code still does not work.
Looking at a similar thing in PaperVision 3D – still didn’t work?
Can anybody please post a code, or a link to code for this?
Thanks.
have a look at this, might help:
triangles and uvs in flash