RAYTRACE.C File Reference

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 Documentation

#define MODULE_TRACE

Definition at line 1 of file RAYTRACE.C.

#define UC   unsigned short

Definition at line 9 of file RAYTRACE.C.

Referenced by buildBST(), and Mirror_In_Ground().

#define US   unsigned long

Definition at line 10 of file RAYTRACE.C.

Referenced by buildBST(), and Mirror_In_Ground().

#define THRESHOLDF   25

Definition at line 30 of file RAYTRACE.C.

#define THRESHOLDR   8

Definition at line 31 of file RAYTRACE.C.

#define IN_PLANE ( point,
plane   )     (point == plane)

Definition at line 149 of file RAYTRACE.C.

#define IN_LESS_VOXEL ( point,
plane   )     (point < plane)

Definition at line 150 of file RAYTRACE.C.

#define IN_GREATER_VOXEL ( point,
plane   )     (point > plane)

Definition at line 151 of file RAYTRACE.C.

#define IN_LESS_EQUAL_VOXEL ( point,
plane   )     (point <= plane)

Definition at line 152 of file RAYTRACE.C.

#define IN_GREATER_EQUAL_VOXEL ( point,
plane   )     (point >= plane)

Definition at line 153 of file RAYTRACE.C.

#define TOL   0.00001

Definition at line 639 of file RAYTRACE.C.


Function Documentation

int buildBST ( void   ) 

void freeBST ( void   ) 

Definition at line 554 of file RAYTRACE.C.

References Object, and X__Free.

Referenced by render().

short check_for_shadow ( long  obj,
vector  p,
vector  natp 
)

Definition at line 740 of file RAYTRACE.C.

References DOT, double, DUMMYL, FALSE, Lights, Nlights, NOSHADOW, SPOTLIGHT, type, VECCOPY, VECSCALE, and VECSUB.

Referenced by GetPixelValue().

BOOL trace_starting_ray ( vector  d,
vector  p,
int *  ob,
int *  fc,
face **  ff 
)

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 
)


Generated on Sun Apr 27 14:20:17 2014 for OpenFX by  doxygen 1.5.6