--- ray/src/hd/rholo2.c 1997/12/12 18:33:50 3.6 +++ ray/src/hd/rholo2.c 1997/12/13 10:30:55 3.8 @@ -34,8 +34,10 @@ register PACKET *p; p->ra[i].r[1][0] = sl[2] * 256.; p->ra[i].r[1][1] = sl[3] * 256.; d = hdray(ro, rd, hdlist[p->hd], gc, p->ra[i].r); + if (!vdef(OBSTRUCTIONS)) + d *= frandom(); /* random offset */ if (p->offset != NULL) { - VSUM(ro, ro, rd, d); /* exterior only */ + VSUM(ro, ro, rd, d); /* advance ray */ p->offset[i] = d; } VCOPY(rod, ro); @@ -75,6 +77,8 @@ done_rtrace() /* clean up and close rtrace calculati wputs("closing rtrace process...\n"); /* flush beam queue */ done_packets(flush_queue()); + /* sync holodeck */ + hdsync(NULL, 1); /* close rtrace */ if ((status = end_rtrace())) error(WARNING, "bad exit status from rtrace");