Glossary of view transformations

本文深入解析视图转换概念,包括定义视图参考点、视图参考平面法线和视图参考垂直方向。详细阐述了从视图参考坐标系到归一化投影坐标系的映射过程,涉及投影类型、投影参考点、前后裁剪平面距离和视图平面距离等关键参数。进一步讨论了透视投影的工作原理,包括视图参考坐标系下的视图体积表示、视图窗口限制变化和视角体积的中心化特性。文章还提供了如何调整视角参数以获得良好透视效果的指导,强调了深度值和视口大小的重要性。

Glossary of view transformations

The following terms are used to define view orientation, i.e. transformation from World Coordinates (WC) to the View Reference Coordinates system (VRC):

  • View Reference Point (VRP) - defines the origin of View Reference Coordinates.
  • View Reference Plane Normal (VPN) - defines the normal of projection plane of the view.
  • View Reference Up Vector (VUP) - defines the vertical of observer of the view.

The following terms are used to define view mapping, i.e. transformation from View Reference Coordinates (VRC) to the Normalized Projection Coordinates (NPC):

  • Projection type - Orthographic or perspective.
  • Projection Reference Point (PRP) - Defines the observer position.
  • Front Plane Distance (FPD) - Defines the position of the front clipping plane in View Reference Coordinates system.
  • Back Plane Distance (BPD) Defines the position of the back clipping plane in View Reference Coordinates system.
  • View Plane Distance (VPD) Defines the position of the view projection plane in View Reference Coordinates system. View plane must be located between front and back clipping planes.
  • Window Limits Defines the visible part of the view projection plane (left, right, top and bottom boundaries: Umin, Umax, Vmax and Vmin respectively) in View Reference Coordinates.

The V3d_View API uses the following terms to define view orientation and mapping:

  • At - Position of View Reference Point (VRP) in World Coordinates
  • Eye - Position of the observer (projection reference point) in World Coordinates. Influences to the view projection vector and depth value.
  • Proj - View projection vector (VPN)
  • Up - Position of the high point / view up vector (VUP)
  • Depth - Distance between Eye and At point
  • ZSize - Distance between front and back clipping planes
  • Size - Window size in View Reference Coordinates
  • Focal Reference point - Position of Projection Reference Point (PRP) in World Coordinates
  • Focale - Distance between Projection Reference Point (PRP) and View projection plane

Management of perspective projection

The perspective projection allows definition of viewing volume as a truncated pyramid (frustum) with apex at the Projection Reference Point. In the View Reference Coordinate system it can be presented by the following picture:

View Reference Coordinate System, perspective viewing volume and view mapping parameter

  During panning, window limits are changed, as if a sort of "frame" through which the user sees a portion of the view plane was moved over the view. The perspective frustum itself remains unchanged.

 

The perspective projection is defined by two parameters:

  • Depth value defines distance between Projection Reference Point and the nearest (front) clipping plane.
  • ZSize defines distance between Front and Back clipping planes. The influence of this parameter is caused by the OCCT specific to center viewing volume around View Reference Point so the front and back plane distances were the same: FPD = BPD = ZSize / 2.

Note that the closer the displayed object to the Projection Reference Point the more visible its perspective distortion. Thus, in order to get a good perspective it is recommended to set ZSize value comparable with the expected model size and small Depth value.

However, very small Depth values might lead to inaccuracy of "fit all" operation and to non-realistic perspective distortion.

转载于:https://www.cnblogs.com/yhlx125/p/3809841.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值