Discussion:
angle of field
(zu alt für eine Antwort)
Mikael
2003-11-17 21:14:00 UTC
Permalink
In the "last minute tips" they say that I need it to derive the "field of
view angle".....or could you please explain in english what Im supposed to
do in getDeviceCoordinates.
Danke Mikael
Henning Scharsach
2003-11-17 17:55:55 UTC
Permalink
Post by Mikael
In the "last minute tips" they say that I need it to derive the "field of
view angle".....or could you please explain in english what Im supposed to
do in getDeviceCoordinates.
Danke Mikael
what you need to do:

- do the prespective correction for x & y which results in the vector
(x/w, y/w, z, 1)
- scale from (-1,1) to screen resolution
- correct by aspect ratio so that (-1,1) in x- and y-direction is
always visible on screen
- center on screen and invert y-coordinate


henning

Loading...