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
- ØØ -




Even a link to a tutorial that goes through it step by step with an example would proably help me at this point..
Reply With Quote