U、V 坐标如何工作?
我正在编写一个应用程序,要求将采用全局 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
UV 贴图是 3D 几何图形的扁平表示,其坐标点通常对应于 3D 维对象的顶点。
UV maps are flattened representations of 3d geometry, with coordinate points usually corresponding to the verticies of a 3d dimensional object.
从外部看:
x、y、z 坐标是无界且绝对的。
这就是我们看待现实的方式。我身高 10 英尺。距离商店3公里。
u、v、w 坐标是有界的且相对的。
对于纹理映射的 2d 表面,这是 x 和 y 方向上的 UV。
这些功能以及现代浮点性能使其成为在形状上映射纹理的非常有用的坐标。
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.
u,v,w coordinates are bounded and relative.
For a 2d surface being texture mapped, this is UV in the x and y directions.
These features, and modern floating point performance, make it a very useful coordinate for mapping textures on shapes.
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.