21 #define MYPI 3.1415926 40 #define RFILE "/cfs/johns/anim/frame" 44 #define RFILE "outfile" 72 for (i=0; i<
NUMSP; i++) {
109 for (i=0; i<6; i++) {
115 for (i=0; i<6; i++) {
128 for (i=0; i<
NUMSP; i++) {
152 int main(
int argc,
char **argv) {
155 int xres, yres, raydepth, antialiasing, verbosemode;
173 Ccenter.
x=1.5; Ccenter.
y=3.0; Ccenter.
z=-8.0;
174 Cview.
x=0.0; Cview.
y=-0.2; Cview.
z=0.8;
175 Cup.
x=0.0; Cup.
y=1.0; Cup.
z=0.0;
177 ctr1.
x=20.0; ctr1.
y=20.0; ctr1.
z=-40.0;
178 ctr2.
x=-20.0; ctr2.
y=20.0; ctr2.
z=-40.0;
192 sprintf(fname,
".%4.4d.tga",i);
193 strcpy(fname2,
RFILE);
194 strcat(fname2, fname);
197 if (
rt_mynode()==0) printf(
"Rendering: %s \n",fname2);
204 Ccenter, Cview, Cup);
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
apivector rot
rotation of texture around origin
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
void rt_renderscene(SceneHandle voidscene)
Render the current scene.
void rt_sphere(SceneHandle scene, void *tex, apivector ctr, flt rad)
Define a sphere with associated texture, center, and radius.
void drawsp(SceneHandle scene)
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.
apivector scale
scale of texture in x,y,z
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 main(int argc, char **argv)
int texturefunc
which texture function to use
flt ambient
ambient lighting
float b
Blue color component.
int rt_mynode(void)
distributed memory parallel node rank
void rt_plane(SceneHandle scene, void *tex, apivector ctr, apivector norm)
Define a plane.
Tachyon public API function prototypes and declarations used to drive the ray tracing engine...
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.