33 #define RFILE "/cfs/johns/anim/frame" 37 #define RFILE "outfile" 40 int main(
int argc,
char **argv) {
43 int xres, yres, raydepth, antialiasing, verbosemode;
59 aspectratio=1.0; raydepth=18;
60 antialiasing=1; verbosemode=0; zoom=1.0;
62 Ccenter.
x=0.0; Ccenter.
y=0.0; Ccenter.
z=-8.0;
63 Cview.
x=0.0; Cview.
y=0.0; Cview.
z=1.0;
64 Cup.
x=0.0; Cup.
y=-1.0; Cup.
z=0.0;
65 ctr1.
x=20.0; ctr1.
y=20.0; ctr1.
z=-40.0;
75 min3.
x=-1.0; min3.
y=-1.0; min3.
z=-0.40;
76 max3.
x=1.0; max3.
y=1.0; max3.
z=0.40;
81 sprintf(fname,
".%4.4d.tga",i);
83 strcat(fname2, fname);
86 if (
rt_mynode()==0) printf(
"Rendering: %s \n",fname2);
100 raydepth, Ccenter, Cview, Cup);
105 "/disk7/cube/vol/head.256x256x109", &vol);
float g
Green color component.
void rt_camera_setup(SceneHandle voidscene, flt zoom, flt aspectratio, int antialiasing, int raydepth, apivector camcent, apivector viewvec, apivector upvec)
Define a camera for a perspective projection, given the specified zoom factor, aspect ratio...
float r
Red color component.
void * rt_texture(SceneHandle sc, apitexture *apitex)
Translate a texture definition into the internal format used by Tachyon, and returns an opaque pointe...
apicolor col
base object color
void rt_resolution(SceneHandle voidscene, int hres, int vres)
Set the horizontal and vertical resolution (in pixels) for the specified scene.
flt diffuse
diffuse reflection
flt opacity
how opaque the object is
flt specular
specular reflection
int main(int argc, char **argv)
void rt_renderscene(SceneHandle voidscene)
Render the current scene.
void rt_scalarvol(SceneHandle scene, void *tex, apivector min, apivector max, int xs, int ys, int zs, const char *fname, void *voidvol)
Define an axis-aligned scalar volumetric data set, loaded from a file.
int rt_initialize(int *argc, char ***argv)
Initialize Tachyon library, must be first Tachyon API called.
flt x
X coordinate or direction component.
flt apiflt
for backward compatibility
flt y
Y coordinate or direction component.
SceneHandle rt_newscene(void)
Allocate, initialize, and return a handle for a new scene.
void rt_outputfile(SceneHandle voidscene, const char *outname)
Set the filename for the output image for the specified scene.
int texturefunc
which texture function to use
flt ambient
ambient lighting
void rt_finalize(void)
Shut down Tachyon library for good, at final use before program termination.
float b
Blue color component.
Tachyon public API function prototypes and declarations used to drive the ray tracing engine...
int rt_mynode(void)
distributed memory parallel node rank
void * rt_light(SceneHandle voidscene, void *tex, apivector ctr, flt rad)
Define a point light with associated texture, position, and radius.
flt z
Z coordinate or direction component.
void rt_verbose(SceneHandle voidscene, int v)
Enables or Disables verbose messages from the Tachyon library during rendering.