Go to the source code of this file.
Defines | |
#define | MODULE_TRACE |
#define | UC unsigned short |
#define | US unsigned long |
#define | THRESHOLDF 25 |
#define | THRESHOLDR 8 |
#define | IN_PLANE(point, plane) (point == plane) |
#define | IN_LESS_VOXEL(point, plane) (point < plane) |
#define | IN_GREATER_VOXEL(point, plane) (point > plane) |
#define | IN_LESS_EQUAL_VOXEL(point, plane) (point <= plane) |
#define | IN_GREATER_EQUAL_VOXEL(point, plane) (point >= plane) |
#define | TOL 0.00001 |
Typedefs | |
typedef struct traceNODE | node |
Define a node in the ray-tracing optimiser. | |
Functions | |
short | R_terminator (void) |
int | buildBST (void) |
void | freeBST (void) |
short | check_for_shadow (long obj, vector p, vector natp) |
BOOL | trace_starting_ray (vector d, vector p, int *ob, int *fc, face **ff) |
short | trace_reflection_ray (vector p, vector d, double depth_max, double *colour, int at_o, face *at_f, long trace_reflection_depth, long trace_refraction_depth, long refractive_flag) |
void | trace_transmission_ray (vector p, vector d, vector n, int at_o, face *at_f, double depth_max, double *colour, long trace_reflection_depth, long trace_refraction_depth, long refractive_flag) |
void | trace_refraction_ray (vector p, vector d, vector n, int at_o, face *at_f, double depth_max, double *colour, int refx, long trace_reflection_depth, long trace_refraction_depth, long refractive_flag) |
#define MODULE_TRACE |
Definition at line 1 of file RAYTRACE.C.
#define UC unsigned short |
#define US unsigned long |
#define THRESHOLDF 25 |
Definition at line 30 of file RAYTRACE.C.
#define THRESHOLDR 8 |
Definition at line 31 of file RAYTRACE.C.
Definition at line 149 of file RAYTRACE.C.
Definition at line 150 of file RAYTRACE.C.
Definition at line 151 of file RAYTRACE.C.
Definition at line 152 of file RAYTRACE.C.
Definition at line 153 of file RAYTRACE.C.
#define TOL 0.00001 |
Definition at line 639 of file RAYTRACE.C.
int buildBST | ( | void | ) |
Definition at line 426 of file RAYTRACE.C.
References BIGN, BIGP, CROSS, FAIL, Renderer_TVERTEX_tag::ip, Animator_NODE::last, max, min, normalize, Object, Render_Message(), trace_depth, trace_face_count_target, UC, US, VECCOPY, VECSUB, WindowedRenderInfo(), X__Free, and X__Malloc.
void freeBST | ( | void | ) |
Definition at line 816 of file RAYTRACE.C.
References double, FALSE, FARAWAY, Object, TRUE, and VECSCALE.
Referenced by GetRowPixelValue().
short trace_reflection_ray | ( | vector | p, | |
vector | d, | |||
double | depth_max, | |||
double * | colour, | |||
int | at_o, | |||
face * | at_f, | |||
long | trace_reflection_depth, | |||
long | trace_refraction_depth, | |||
long | refractive_flag | |||
) |
Definition at line 834 of file RAYTRACE.C.
References GetSurfaceValue(), Object, and VECSUM.
Referenced by GetMirrorValues().
void trace_transmission_ray | ( | vector | p, | |
vector | d, | |||
vector | n, | |||
int | at_o, | |||
face * | at_f, | |||
double | depth_max, | |||
double * | colour, | |||
long | trace_reflection_depth, | |||
long | trace_refraction_depth, | |||
long | refractive_flag | |||
) |
Definition at line 870 of file RAYTRACE.C.
References GetSurfaceValue(), Object, and VECSUM.
Referenced by GetPixelValue().
void trace_refraction_ray | ( | vector | p, | |
vector | d, | |||
vector | n, | |||
int | at_o, | |||
face * | at_f, | |||
double | depth_max, | |||
double * | colour, | |||
int | refx, | |||
long | trace_reflection_depth, | |||
long | trace_refraction_depth, | |||
long | refractive_flag | |||
) |
Definition at line 911 of file RAYTRACE.C.
References dot(), DOT, double, EOPAQUE, GetGroundLight(), GetSurfaceValue(), Ground, MapEnvironmentInDirection(), MapFromProjection(), Renderer_GROUND_tag::n, Object, Renderer_GROUND_tag::p, R_Nground, Sky, SKYCUBE, SKYMAPPED, TILE, Animator_SKY::type, vecscale(), VECSCALE, vecsub(), VECSUB, vecsum(), and VECSUM.
Referenced by GetPixelValue().