BitmapData - 三角变换

发布于 2024-10-01 11:49:40 字数 508 浏览 0 评论 0原文

嘿,这真让我烦恼。

我有一个很大的代码,但本质上,这部分涉及使用仿射变换将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心在旅行 2024-10-08 11:49:40

看看这个,可能会有所帮助:

三角形和 uvs在闪光灯中

have a look at this, might help:

triangles and uvs in flash

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文