persp_project(3alleg4) Allegro manual persp_project(3alleg4)NAME
persp_project, persp_project_f - Projects a 3d point into 2d screen space. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void persp_project(fixed x, fixed y, fixed z, fixed *xout, fixed *yout);
void persp_project_f(float x, float y, float z, float *xout, float *yout);
DESCRIPTION
Projects the 3d point (x, y, z) into 2d screen space, storing the result in (*xout, *yout) and using the scaling parameters previously set
by calling set_projection_viewport(). This function projects from the normalized viewing pyramid, which has a camera at the origin and fac-
ing along the positive z axis. The x axis runs left/right, y runs up/down, and z increases with depth into the screen. The camera has a 90
degree field of view, ie. points on the planes x=z and -x=z will map onto the left and right edges of the screen, and the planes y=z and
-y=z map to the top and bottom of the screen. If you want a different field of view or camera location, you should transform all your
objects with an appropriate viewing matrix, eg. to get the effect of panning the camera 10 degrees to the left, rotate all your objects 10
degrees to the right.
SEE ALSO set_projection_viewport(3alleg4), get_camera_matrix(3alleg4), ex3d(3alleg4), exstars(3alleg4)Allegro version 4.4.2 persp_project(3alleg4)
Check Out this Related Man Page
persp_project(3alleg4) Allegro manual persp_project(3alleg4)NAME
persp_project, persp_project_f - Projects a 3d point into 2d screen space. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void persp_project(fixed x, fixed y, fixed z, fixed *xout, fixed *yout);
void persp_project_f(float x, float y, float z, float *xout, float *yout);
DESCRIPTION
Projects the 3d point (x, y, z) into 2d screen space, storing the result in (*xout, *yout) and using the scaling parameters previously set
by calling set_projection_viewport(). This function projects from the normalized viewing pyramid, which has a camera at the origin and fac-
ing along the positive z axis. The x axis runs left/right, y runs up/down, and z increases with depth into the screen. The camera has a 90
degree field of view, ie. points on the planes x=z and -x=z will map onto the left and right edges of the screen, and the planes y=z and
-y=z map to the top and bottom of the screen. If you want a different field of view or camera location, you should transform all your
objects with an appropriate viewing matrix, eg. to get the effect of panning the camera 10 degrees to the left, rotate all your objects 10
degrees to the right.
SEE ALSO set_projection_viewport(3alleg4), get_camera_matrix(3alleg4), ex3d(3alleg4), exstars(3alleg4)Allegro version 4.4.2 persp_project(3alleg4)
I'm using my wife's Macbook, and I just noticed that her screen is off axis, but I can't find a way to adjust it. I've tried playing around with resolution in preferences, but nothing.
Maybe a terminal command for adjusting the x and y values of the screen?
Any and all suggestions welcomed :) (2 Replies)
I have installed a network camera in my home which i would like to watch when i am in my office.The problem is that the specific port that is used from my camera to pass video is blocked by my isp(as most ports for incoming connections). It is not possible to change that port from my camera... (3 Replies)
Hello, everyone! :]
I'm having an issue with my camera/uploading to Photobucket.
When my camera transfers it's photos to my hard drive, it transfers them as .JPG. Unfortunately, when I go to upload to my Photobucket account, it only accepts .jpg & .jpeg files. Every time I want to upload, I... (6 Replies)
Hi to all
Like in the subject, i got the problem with camera ID 0c45:613b Microdia Win2 PC Camera under Ubuntu. When i plug in camera to USB, Ubuntu put in sn9c102 module, but on this site Linux Kernel Driver Database: CONFIG_USB_GSPCA_SONIXJ: SONIX JPEG USB Camera Driver is information that... (0 Replies)