Results 1 to 6 of 6

Thread: [RESOLVED] World to screen coordinates. [Left handed coord]

Threaded View

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved [RESOLVED] World to screen coordinates. [Left handed coord]

    Grrrr...first time I actualy need this, then I have forgotten my book back in Norway..hmm...well I need to transform world coordinates to screen coordinates. So if I am not wrong, this will have to go through eye coordinates:

    World -> Eye/Camera -> Screen

    I think I remember how to transform from Eye to Screen now, but I can't remember exactly how to go from World to Eye. Any help here?

    If I am not wrong, it is something like:
    Eye-coordinates = Camera-Matrix * World-Coordinate

    But how does the world matrix look like then? I guess it is a 4*4matrix, and 3 of the rows/colums are LookAt-vector, Up-vector, and something else (cross product of the two?). but in what order are they? Is it something like this?
    ---------------------------
    - View Reference Point (VRP)
    - View Plane Normal (VPN)
    - View Up (VUP)
    ---------------------------
    Matrix:
    Code:
    VUP*VPN    0 
       VUP     0
       VPN     0
    0  0   0   1

    or are they ordered in colums or is it an other order of them. Any shed of light on this would be nice.. Even a link to a tutorial that goes through it step by step with an example would proably help me at this point..

    Thanks
    - ØØ -
    Last edited by NoteMe; Aug 3rd, 2005 at 04:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width