Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

persp_project_f(3alleg4) [debian 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)

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)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

viewing specific lines

hi, is there any command on viewing specific line number of a file? thanks (3 Replies)
Discussion started by: dakid
3 Replies

2. Shell Programming and Scripting

Changing particular field in fixed width file

I have a fixed width file and i need to change 36th field to "G" in for about random 20 records? How can I do it? (4 Replies)
Discussion started by: dsravan
4 Replies

3. OS X (Apple)

Adjust X & Y screen axis

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)
Discussion started by: andou
2 Replies

4. IP Networking

Blocked ports

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)
Discussion started by: link7722
3 Replies

5. UNIX for Dummies Questions & Answers

changing file extension

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)
Discussion started by: spidydude
6 Replies

6. UNIX Desktop Questions & Answers

problem with camera ID 0c45:613b Microdia Win2 PC Camera Ubuntu

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)
Discussion started by: m0z4rt
0 Replies