1

I have some questions about ray tracing:

How can I calculate w,v,u unit vectors according to world coordinate system ?

                      |----------------------|
    up vector         |                      |
      ^               |                      |
      |               |          .           |
      |               |                      |
      .               |       gaze point     |
                      |                      |
  eye origin          |                      |
                      |----------------------|
                               screen

How can I generate a perspective ray for ( i,j) ?

                      |----------------------|
    up vector         |                      |
      ^               |                      |
      |               |          .           |
      |               |                      |
      .               |       (i,j)          |
                      |                      |
  eye origin          |                      |
                      |----------------------|
                               screen

0 Answers0