Glossary of view transformations

來源:互聯網
上載者:User

標籤:class   blog   http   com   get   strong   

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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.