BitmapData - 三角变换
嘿,这真让我烦恼。
我有一个很大的代码,但本质上,这部分涉及使用仿射变换将 BitmapData 转换为三角形点。
另外 - 我知道 BitmapData 是矩形的 - 变换的最后一个第四点只是在其他两点定义的轴上反射的第一个点。
一件小事,这样你就可以看到哪个点是哪个点:
1........2
. / / / /|
./ / / /
. / / / |
./ / /
. / / |
./ /
. / |
./
3 - - - -4 - 4th point reflected
整个过程将根据点之间的角度来缩放、旋转和倾斜 BitmapData...
但不知怎的,我的代码仍然没有工作。
在 PaperVision 3D 中查看类似的内容 - 仍然不起作用?
有人可以发布代码或代码链接吗?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个,可能会有所帮助:
三角形和 uvs在闪光灯中
have a look at this, might help:
triangles and uvs in flash