--- ray/src/rt/rpict.c 1989/04/10 09:32:55 1.2 +++ ray/src/rt/rpict.c 1989/09/12 12:28:26 1.7 @@ -24,18 +24,19 @@ static char SCCSid[] = "$SunId$ LBL"; VIEW ourview = STDVIEW(512); /* view parameters */ int psample = 4; /* pixel sample size */ - double maxdiff = .05; /* max. difference for interpolation */ - double dstrpix = 0.67; /* square pixel distribution */ + double dstrsrc = 0.0; /* square source distribution */ +double shadthresh = .05; /* shadow threshold */ +double shadcert = .5; /* shadow certainty */ int maxdepth = 6; /* maximum recursion depth */ double minweight = 5e-3; /* minimum ray weight */ COLOR ambval = BLKCOLOR; /* ambient value */ double ambacc = 0.2; /* ambient accuracy */ -int ambres = 128; /* ambient resolution */ +int ambres = 32; /* ambient resolution */ int ambdiv = 128; /* ambient divisions */ int ambssamp = 0; /* ambient super-samples */ int ambounce = 0; /* ambient bounces */ @@ -111,7 +112,7 @@ char *oldfile; } /* write out boundaries */ - printf("-Y %d +X %d\n", ourview.vresolu, ourview.hresolu); + fputresolu(YMAJOR|YDECR, ourview.hresolu, ourview.vresolu, stdout); ypos = ourview.vresolu - salvage(oldfile); /* find top line */ fillscanline(scanbar[0], ypos, psample); /* top scan */ @@ -262,7 +263,7 @@ char *oldfile; /* discard header */ getheader(fp, NULL); /* get picture size */ - if (fscanf(fp, "-Y %d +X %d\n", &y, &x) != 2) { + if (fgetresolu(&x, &y, fp) != (YMAJOR|YDECR)) { sprintf(errmsg, "bad recover file \"%s\"", oldfile); error(WARNING, errmsg); fclose(fp);