Flash 纹理映射的三角形看起来很糟糕

发布于 2024-08-05 06:19:03 字数 199 浏览 2 评论 0原文

我有一个用 PaperVision3D 制作的 3D 立方体。

每个“边”由 2 个三角形组成。

我有不同的纹理“材料”映射到每一面。

当我旋转立方体时,纹理会像两个三角形之间的倒置 v 一样倾斜。当直视一张脸时,它看起来还不错,但开始旋转并且它开始扭曲纹理。

如何使 Flash 中的纹理映射看起来像 DirectX?

I have a 3D cube made with PaperVision3D.

Each "side" is made of 2 triangles.

I have a different texture "material" mapped to each side.

When I rotate the cube the texture is skewed like '/\' an upside down v between both triangles. When looking at a face straight on it looks ok but start to rotate and it starts to skew the textures.

How do you make texture mapping in Flash look like DirectX?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

雪若未夕 2024-08-12 06:19:03

PaperVision3D doesn't use "real" 3d texturing, it uses something called affine mapping which is a hack.
In order to achieve better results you need to partition your cube to as many triangles as possible instead of using just two triangles per face.

惟欲睡 2024-08-12 06:19:03

我遇到了同样的问题,我在每个平面上使用了 2 个多边形。我将其提高到 4,看起来很棒 - 边缘没有倾斜,并且在再次看到扭曲之前我可以拥有的多边形数量最少。

I had the same problem, I was using 2 poly's to each plane. I upped it to 4 and it looks great - no skewing on the edges and the least amount of polygons I can have before I see the scewing again.

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