各坐标的转换:
Transforms position from world space into screen space.
從世界空間到屏幕空間變換位置。
Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.
屏幕空間以像素定義,屏幕左下為0,0,右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。
Transforms position from screen space into world space.
從屏幕空間到世界空間的變化位置。
Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.
屏幕空間以像素定義。屏幕的左下為(0,0);右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。
3.WorldToViewportPoint:
Transforms position from world space into viewport space.
從世界空間到視窗空間的變換位置。
Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.
視口空間是歸一化的并相對于相機的。相機的左下為(0,0);右上是(1,1),Z的位置是以世界單位衡量的到相機的距離。
4.ViewportToWorldPoint:
Transforms position from viewport space into world space.
從視窗空間到世界空間的變換位置。
Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.
視口空間是歸一化的并相對于相機的,相機的左下為(0,0);右上是(1,1);Z的位置是以世界單位衡量的到相機的距離。
Note that it transforms a x-y screen position, into a x-y-z position in 3D space.
請注意它是變換一個x-y屏幕位置到一個3D空間的x-y-z位置。
You provide the function with a vector where the x-y components of the vector are the screen coordinates and the z component is the distance of the resulting plane from the camera.
這個函數帶有在屏幕坐標的x-y組件向量,并且z組件是在從相機產生的平面的距離。
5.ViewportToScreenPoint:
Transforms position from viewport space into screen space.
從視口空間到屏幕空間的變換位置。
Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.
視口空間是規范化的并相對于相機。相機的左下為(0,0),右上是(1,1),Z的位置是以世界單位衡量的到相機的距離。
Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.
屏幕空間以像素定義。屏幕的左下為(0,0);右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。
6.ScreenToViewportPoint
Transforms position from screen space into viewport space.
從屏幕空間到視窗空間的變換位置。
Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.
屏幕空間以像素定義。屏幕的左下為(0,0);右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。
Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.
視口空間是規范化的并相對于相機。相機的左下為(0,0);右上是(1,1),Z的位置是以世界單位衡量的到相機的距離。
總結
- 上一篇: [架构之路-146]-《软考-系统分析师
- 下一篇: 游戏配音制作软件有哪些好?看完你可能就知