Tachyon (current)
Current Main Branch
|
Go to the source code of this file.
Functions | |
void | camera_init (scenedef *) |
void | camray_init (scenedef *, ray *, unsigned long, unsigned long *, unsigned int, unsigned int) |
void | cameradefault (camdef *) |
void | cameraprojection (camdef *, int) |
void | cameradof (camdef *, flt focaldist, flt aperture) |
void | camerafrustum (camdef *, flt l, flt r, flt b, flt t) |
When the user directly specifies the world coordinates of the view frustum, it overrides the normal calculations involving zoom factor, aspect ratio, etc. More... | |
void | camerazoom (camdef *, flt zoom) |
void | cameraposition (camdef *camera, vector center, vector viewvec, vector upvec) |
void | getcameraposition (camdef *camera, vector *center, vector *viewvec, vector *upvec, vector *rightvec) |
void | cam_prep_perspective_ray (ray *, flt, flt) |
color | cam_perspective_aa_dof_ray (ray *, flt, flt) |
color | cam_perspective_aa_ray (ray *, flt, flt) |
color | cam_perspective_ray (ray *, flt, flt) |
color | cam_perspective_dof_ray (ray *, flt, flt) |
color | cam_orthographic_aa_dof_ray (ray *, flt, flt) |
color | cam_orthographic_aa_ray (ray *, flt, flt) |
color | cam_orthographic_ray (ray *, flt, flt) |
color | cam_orthographic_dof_ray (ray *, flt, flt) |
color | cam_equirectangular_aa_ray (ray *, flt, flt) |
color | cam_equirectangular_ray (ray *, flt, flt) |
color | cam_equirectangular_aa_stereo_ray (ray *, flt, flt) |
color | cam_equirectangular_stereo_ray (ray *, flt, flt) |
color | cam_fisheye_aa_ray (ray *, flt, flt) |
color | cam_fisheye_ray (ray *, flt, flt) |
Definition at line 769 of file camera.c.
References cam_equirectangular_ray(), and jitter_offset2f().
Definition at line 901 of file camera.c.
References cam_equirectangular_stereo_ray(), and jitter_offset2f().
Referenced by camera_init().
Definition at line 708 of file camera.c.
References intersect_objects(), SINCOS, and SQRT.
Referenced by cam_equirectangular_aa_ray().
Definition at line 808 of file camera.c.
References fabsf(), intersect_objects(), SINCOS, SQRT, and VCross().
Referenced by cam_equirectangular_aa_stereo_ray(), and camera_init().
Definition at line 972 of file camera.c.
References cam_fisheye_ray(), and jitter_offset2f().
Referenced by camera_init().
Definition at line 936 of file camera.c.
References COS, intersect_objects(), and SIN.
Referenced by cam_fisheye_aa_ray(), and camera_init().
Definition at line 536 of file camera.c.
References cam_orthographic_dof_ray(), cam_orthographic_ray(), and jitter_offset2f().
Referenced by camera_init().
Definition at line 638 of file camera.c.
References cam_orthographic_ray(), and jitter_offset2f().
Referenced by camera_init().
Definition at line 571 of file camera.c.
References intersect_objects(), jitter_disc2f(), and VNorm().
Referenced by cam_orthographic_aa_dof_ray().
Definition at line 673 of file camera.c.
References intersect_objects().
Referenced by cam_orthographic_aa_dof_ray(), cam_orthographic_aa_ray(), and camera_init().
Definition at line 319 of file camera.c.
References cam_perspective_dof_ray(), cam_perspective_ray(), cam_prep_perspective_ray(), and jitter_offset2f().
Referenced by camera_init().
Definition at line 439 of file camera.c.
References cam_perspective_ray(), cam_prep_perspective_ray(), and jitter_offset2f().
Referenced by camera_init().
Definition at line 365 of file camera.c.
References intersect_objects(), jitter_disc2f(), SQRT, and VNorm().
Referenced by cam_perspective_aa_dof_ray().
Definition at line 523 of file camera.c.
References cam_prep_perspective_ray(), and intersect_objects().
Referenced by cam_perspective_aa_dof_ray(), cam_perspective_aa_ray(), and camera_init().
Definition at line 482 of file camera.c.
References SQRT.
Referenced by cam_perspective_aa_dof_ray(), cam_perspective_aa_ray(), and cam_perspective_ray().
void camera_init | ( | scenedef * | ) |
Definition at line 33 of file camera.c.
References cam_equirectangular_aa_stereo_ray(), cam_equirectangular_stereo_ray(), cam_fisheye_aa_ray(), cam_fisheye_ray(), cam_orthographic_aa_dof_ray(), cam_orthographic_aa_ray(), cam_orthographic_ray(), cam_perspective_aa_dof_ray(), cam_perspective_aa_ray(), cam_perspective_ray(), RT_PROJECTION_FISHEYE, RT_PROJECTION_ORTHOGRAPHIC, RT_PROJECTION_ORTHOGRAPHIC_DOF, RT_PROJECTION_PERSPECTIVE, RT_PROJECTION_PERSPECTIVE_DOF, RT_PROJECTION_STEREO_EQUIRECTANGULAR, VCross(), and VNorm().
Referenced by renderscene().
void cameradefault | ( | camdef * | ) |
Definition at line 1024 of file camera.c.
Referenced by rt_camera_dof().
When the user directly specifies the world coordinates of the view frustum, it overrides the normal calculations involving zoom factor, aspect ratio, etc.
The caller must therefore be responsible for making sure that all of these factors work out. We wash our hands of all of the usual automatic computations and use these factors as-is.
Definition at line 1015 of file camera.c.
Referenced by rt_camera_frustum().
void cameraposition | ( | camdef * | camera, |
vector | center, | ||
vector | viewvec, | ||
vector | upvec | ||
) |
Definition at line 1056 of file camera.c.
References VCross(), and VNorm().
Referenced by rt_camera_position(), and rt_camera_position3fv().
void cameraprojection | ( | camdef * | , |
int | |||
) |
Definition at line 1003 of file camera.c.
Referenced by rt_camera_projection().
void camerazoom | ( | camdef * | , |
flt | zoom | ||
) |
Definition at line 1041 of file camera.c.
Referenced by cameradefault(), and rt_camera_zoom().
void camray_init | ( | scenedef * | , |
ray * | , | ||
unsigned | long, | ||
unsigned long * | , | ||
unsigned | int, | ||
unsigned | int | ||
) |
Definition at line 186 of file camera.c.
References add_clipped_intersection(), add_regular_intersection(), rng_frand_init(), and rng_frand_seed().
Referenced by thread_trace().
void getcameraposition | ( | camdef * | camera, |
vector * | center, | ||
vector * | viewvec, | ||
vector * | upvec, | ||
vector * | rightvec | ||
) |
Definition at line 1079 of file camera.c.
Referenced by rt_get_camera_position(), and rt_get_camera_position3fv().