--- ray/src/rt/rv2.c 2005/04/19 01:15:06 2.49 +++ ray/src/rt/rv2.c 2006/06/07 17:52:04 2.54 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rv2.c,v 2.49 2005/04/19 01:15:06 greg Exp $"; +static const char RCSid[] = "$Id: rv2.c,v 2.54 2006/06/07 17:52:04 schorsch Exp $"; #endif /* * rv2.c - command routines used in tracing a view. @@ -289,7 +289,7 @@ getfocus( /* set focus distance */ char *s ) { - FVECT vc; + char buf[64]; double dist; if (sscanf(s, "%lf", &dist) < 1) { @@ -316,6 +316,8 @@ getfocus( /* set focus distance */ return; } ourview.vdist = dist; + sprintf(buf, "Focus distance set to %f\n", dist); + (*dev->comout)(buf); } @@ -522,11 +524,15 @@ setparam( /* get/set program parameter */ if (s[0] == '\0') { (*dev->comout)( - "aa ab ad ar as av aw b dc dv dj ds dt i lr lw me ma mg ms ps pt sj st bv: "); + "aa ab ad ar as av aw b bv dc dv dj ds dt i lr lw me ma mg ms ps pt sj st u: "); (*dev->comin)(buf, NULL); s = buf; } switch (s[0]) { + case 'u': /* uncorrelated sampling */ + getparam(s+1, "uncorrelated sampling", 'b', + (void *)&rand_samp); + break; case 'l': /* limit */ switch (s[1]) { case 'w': /* weight */ @@ -727,7 +733,7 @@ char *s; (*dev->comout)("ray hit nothing"); else { OBJREC *mat = NULL; - OBJREC *mod = NULL;; + OBJREC *mod = NULL; char matspec[256]; matspec[0] = '\0'; if (thisray.ro->omod != OVOID) {