1 / 14

3-D Viewing Process

3-D Viewing Process. Modeling Coordinates. World Coordinates. 3-D. Modeling transformation. Viewing transformation. Viewing Coordinates. Projection transformation. Projection Coordinates. 2-D. Workstation transformation. Device/Window Coordinates. Viewing Coordinate System.

youngberg
Download Presentation

3-D Viewing Process

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3-D Viewing Process ModelingCoordinates WorldCoordinates 3-D Modeling transformation Viewing transformation ViewingCoordinates Projection transformation ProjectionCoordinates 2-D Workstation transformation Device/WindowCoordinates CS-321Dr. Mark L. Hornick

  2. Viewing Coordinate System Identify viewer position relative to scene Viewer “looks through” a window Must specify position and view direction CS-321Dr. Mark L. Hornick

  3. yv ym xv zv N xm zm View Plane View plane defined by normal vector (N) CS-321Dr. Mark L. Hornick

  4. yv ym Pr P0 xv zv xm N zm View Reference Points • Pr: a point in the scene we are looking at • P0: a vantage point from which we’re looking • Note Pr, P0, and N are expressed in xmymzm CS-321Dr. Mark L. Hornick

  5. ym ym xm xm zm zm Look-Up Vector V V View-plane normal vector and reference point are not enough We also need to specify orientation of view(er) View-up vector (V) must be normal to N CS-321Dr. Mark L. Hornick

  6. yv P0 ym xv zv N xm zm Viewing Coordinates N,V form a right hand system. V Pr Viewing coordinate system based on vectors V,N Forms the (xv, yv, zv) coordinate axes CS-321Dr. Mark L. Hornick

  7. yv P0 ym xv zv N,n xm zm Viewing Coordinates l,m,n form a right hand system. L,l m V Pr Note V and m are not necessarily parallel. CS-321Dr. Mark L. Hornick

  8. ym Pr xm zm Changing Views (1) Maintain Pr, change N N N N CS-321Dr. Mark L. Hornick

  9. zm N P0 Changing Views (2) Maintain N, change Pr and P0 Pr ym Pr Pr xm N N P0 P0 CS-321Dr. Mark L. Hornick

  10. View to Model Transformation • Expresses the position & orientation of xvyvzv with respect to xmymvm • Allows us to transform coordinates from view frame to model frame • But we want just the opposite… CS-321Dr. Mark L. Hornick

  11. Model to View Transformation • The inverse of the view to model transformation produces the model to view transformation • Expresses the position & orientation of xmymzm with respect to xvyvvv • Allows us to transform coordinates from model frame to view frame CS-321Dr. Mark L. Hornick

  12. View to Device Transformation • The view to device transformation expresses the position and orientation of the view coordinate system w.r.t. the device coordinate system. • Allows us to transform coordinates from view frame to device/window frame. • Incorporates parameters that specify the offset of the view frame w.r.t. the upper-left corner of the screen, as well as the fact that the view frame is rotated 180 about the x-axis w.r.t. the device frame. CS-321Dr. Mark L. Hornick

  13. Model to Device Transformation • The model to device transformation expresses the position and orientation of the model coordinate system w.r.t. the device coordinate system • This is simply the compound transformation of model to view, followed by view to device CS-321Dr. Mark L. Hornick

  14. Model Coordinates to Device Coordinates • Using the compound model to device transformation, the coordinates of a point v in the model coordinate frame can be transformed into coordinates in the device/window frame • Scaling factor s can also be applied via a 3-D scaling matrix S CS-321Dr. Mark L. Hornick

More Related