Chapter 8
3D Coordinate systems

       Y
        ||
       ||
        ||||
       ----|---------|||  X
    ----
  |||
  |
Z
       right-handed  Y
||
||      Z
|   |||
||||||
|||||------------|||
                 |   X
      left-handed

8.1 View Coordinates

                 -   --
               - -- -- --
            |||-- ------              -
              |||  ----               -|||-
    ------     -||----    --        |-|-|||
-----  | -------------- --------       ||-    -
-----------| |    - | |---------   -|| ----|---
|     |    | |    | | | |     |      ||-----
|     |   -- -----|---- ------|       |||-
------|---        |                    |
|                                      |

8.2 Window

Within the Xv Y v plane of the view coordinate system                             ||||
         Yv     -   --||||||||||
         |    -|||||||||||||||||
         |||||||||||||-    |||||
         |||||||  ----     |||||
   ----- ||||||||---     --|||||
----  |--||||||------- -||||||||||||| Xv
---------||||||---||||||||||||||
Zv    |   |||||||||||||||||  ||
| |||||  |||||||||||-- -----||
------||||||||   |
             ||||||||
                  ||-

8.3 World Coordinates

Traditionally defined in right-handed coordinate system.                               -
                         --  --
Y                      -  ---- --
 |                  |||--  -----
|||                   |||| ----
 |         --------    --|----   ----
 |     -----   |--------------------|---
 |    -----------  | |    | | | |     |
 |     |       |   | |    | | | |     |
 |     |       | --- -----|---  ------|
 |     -----------        |
||--------------|||- X
|
Z

8.4 Object Coordinates

Traditionally defined in right-handed coordinate system.

           Y
           ||
           ||
           ||-----
       |||||---||-----
    ----|---|----|--|------|- X
   ||   ---------||||
Z

           Y
           ||-
       --  --  ||
 ||| -  -----|||
   ||||  --||
      ---|--|--------------|- X
   |--  |
Z       |

8.5 The Pipeline

       Y|
       |||
     ||||---
   |-|--|||--- X
Z     --||         Y
    ------
 ||||----
   -||-------- X
Z    |                                                        ||||
                                Yv      -   - ||||||||||
                                 |    -|||||||||||||||||
         Y                       ||||||||||||||    |||||
         |||                     |||||||  ----     |||||
          |                ----- |||||||----     --|||||
          |            ----- ||--|||||| ------ -||||||||||||| Xv
          |          ------------||||||---||||||||||||||
          |   Zv ||||||      |   |||||||||||||||||  ||
          |           |  ||||||  |||||||||||--------||
          |           --------||||||||  |
        |||---------------|||       ||||||||-
   ||-|||                     X           ||-
Z

8.6 View Piramid

Translation+Shear Transformations

                    |
                    |
  ||             |||||||
   |||||  ||||||||---|||
       ||||||----  |||||
        |||||||||  |--||
        ||||   -||||-|||
       --||------  -|-
--------|||   world transformed
               around window                         |         -
                     ||       --
                   --|---------
                   ##-     --#
                   #||-- ---##  |||
                   #|-- -- ##||||
                   #|-----|||-
                   ||--|||-
                   |-||
                  ||
                   window adjusted
                    within world