--- ray/src/rt/raycalls.c 2003/06/30 14:59:12 2.4 +++ ray/src/rt/raycalls.c 2003/09/24 14:55:54 2.7 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: raycalls.c,v 2.4 2003/06/30 14:59:12 schorsch Exp $"; +static const char RCSid[] = "$Id: raycalls.c,v 2.7 2003/09/24 14:55:54 greg Exp $"; #endif /* * raycalls.c - interface for running Radiance rendering as a library @@ -116,7 +116,7 @@ int samplendx = 0; /* index for this sample */ void (*trace)() = NULL; /* trace call */ extern void ambnotify(); -void (*addobjnotify[])() = {ambnotify, NULL}; +void (*addobjnotify[8])() = {ambnotify, NULL}; int do_irrad = 0; /* compute irradiance? */ @@ -163,8 +163,7 @@ char *otnm; if (ofun[OBJ_SPHERE].funp == o_default) initotypes(); /* initialize urand */ - if (urperm == NULL) - initurand(2048); + initurand(2048); /* read scene octree */ readoct(octname = otnm, ~(IO_FILES|IO_INFO), &thescene, NULL); nsceneobjs = nobjects; @@ -353,15 +352,15 @@ RAYPARAMS *rp; rp->specthresh = .15; rp->specjitter = 1.; rp->backvis = 1; - rp->maxdepth = 6; - rp->minweight = 4e-3; + rp->maxdepth = 8; + rp->minweight = 2e-3; setcolor(rp->ambval, 0., 0., 0.); memset(rp->ambfile, '\0', sizeof(rp->ambfile)); rp->ambvwt = 0; - rp->ambres = 128; - rp->ambacc = 0.2; - rp->ambdiv = 512; - rp->ambssamp = 0; + rp->ambres = 256; + rp->ambacc = 0.1; + rp->ambdiv = 1024; + rp->ambssamp = 512; rp->ambounce = 0; rp->ambincl = -1; memset(rp->amblval, '\0', sizeof(rp->amblval));