U、V 坐标如何工作?

发布于 2024-09-11 09:14:32 字数 73 浏览 0 评论 0原文

我正在编写一个应用程序,要求将采用全局 x,y 坐标的图像处理函数转换为采用 u,v 坐标的图像处理函数。 U、V 坐标系如何工作?

I'm writing an application that calls for the conversion of image processing functions that take global x,y coordinates to ones that take u,v coordinates. How does the U,V coordinate system work?

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

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

发布评论

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

评论(3

离不开的别离 2024-09-18 09:14:32

UV 贴图是 3D 几何图形的扁平表示,其坐标点通常对应于 3D 维对象的顶点。

UV

UV maps are flattened representations of 3d geometry, with coordinate points usually corresponding to the verticies of a 3d dimensional object.

UV

茶花眉 2024-09-18 09:14:32

从外部看:

x、y、z 坐标是无界且绝对的。

这就是我们看待现实的方式。我身高 10 英尺。距离商店3公里。

  • 它是无限的——你可以朝任何方向继续前进。
  • 它是绝对的 - x 方向上的 1 米在任何地方都是相同的。
  • 它有单位。 x 方向上的 1 没有意义。 1厘米还是1公里?

u、v、w 坐标是有界的且相对的。

对于纹理映射的 2d 表面,这是 x 和 y 方向上的 UV。

  • 它的范围是 0.0 -> 0.0。 1.0。你身高1.0。 1.1 没有纹理,
  • 这是相对的。无论身高如何,你寻找某人的脸都在 0.9 左右。
  • 它是无单位的。 “单位”是与它相关的事物。在此示例中,为 0.9“您”。

这些功能以及现代浮点性能使其成为在形状上映射纹理的非常有用的坐标。

From the outside, looking in:

x,y,z coordinates are unbounded and absolute.

It's how we think of reality. I'm 10' tall. It's 3km to the store.

  • It is unbounded - you can just keep going in any direction.
  • It is absolute - a 1 meter in the x direction is the same everywhere.
  • It has units. 1 in the x direction is meaningless. 1 cm or 1 km?

u,v,w coordinates are bounded and relative.

For a 2d surface being texture mapped, this is UV in the x and y directions.

  • It is bounded from 0.0 -> 1.0. You are 1.0 tall. There is no you to texture at 1.1
  • It is relative. Regardless of height, you look for someone's face around 0.9.
  • It is unit-less. The "unit" is the thing it's relative to. In this example, 0.9 "you".

These features, and modern floating point performance, make it a very useful coordinate for mapping textures on shapes.

意犹 2024-09-18 09:14:32

U、V 和 W 是用方向/长度表达向量的标准方法,其中 X、Y 和 Z 代表单个点。如果这是您正在使用的库的意图,那么它的大部分内容应该直接从 UVW 转换为 XYZ,只是背后有不同的精神。

U, V, and W are standard ways to express vectors in terms of direction/length, where X, Y, and Z represent a single point. If this is the intent of the library you're using, then it should translate directly from UVW to XYZ for the most part, just with a different spirit behind it.

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