ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhd_glx.c
(Generate patch)

Comparing ray/src/hd/rhd_glx.c (file contents):
Revision 3.24 by gwlarson, Thu Dec 10 10:45:54 1998 UTC vs.
Revision 3.27 by gwlarson, Sun Jan 3 13:40:25 1999 UTC

# Line 308 | Line 308 | register VIEW  *nv;
308                          dev_input();    /* get resize event */
309                  }
310                  copystruct(&odev.v, nv);        /* setview() already called */
311 +        }
312   #ifdef STEREO
313 <                copystruct(&vwright, nv);
314 <                d = eyesepdist / sqrt(nv->hn2);
315 <                VSUM(vwright.vp, nv->vp, nv->hvec, d);
316 <                /* setview(&vwright);   -- Unnecessary */
313 >        copystruct(&vwright, nv);
314 >        d = eyesepdist / sqrt(nv->hn2);
315 >        VSUM(vwright.vp, nv->vp, nv->hvec, d);
316 >        /* setview(&vwright);   -- Unnecessary */
317   #endif
317        }
318          wipeclean();
319          return(1);
320   }
321  
322  
323 + dev_section(gfn, pfn)           /* add octree for geometry rendering */
324 + char    *gfn, *pfn;
325 + {
326 +        /* unimplemented */
327 + }
328 +
329 +
330   dev_auxcom(cmd, args)           /* process an auxiliary command */
331   char    *cmd, *args;
332   {
# Line 703 | Line 710 | register VIEW  *vp;
710          double  d, xmin, xmax, ymin, ymax;
711  
712          if (mindpth >= maxdpth) {
713 <                dev_zmin = 0.1;
713 >                dev_zmin = 1.;
714                  dev_zmax = 100.;
715          } else {
716                  dev_zmin = 0.5*mindpth;
717 <                dev_zmax = 1.5*maxdpth;
711 <                if (dev_zmin > dev_zmax/100.)
712 <                        dev_zmin = dev_zmax/100.;
717 >                dev_zmax = 5.0*maxdpth;
718          }
719          if (odev.v.vfore > FTINY)
720                  dev_zmin = odev.v.vfore;
721          if (odev.v.vaft > FTINY)
722                  dev_zmax = odev.v.vaft;
723 <        if (dev_zmin < dev_zmax/5000.)
724 <                dev_zmin = dev_zmax/5000.;
723 >        if (dev_zmin < dev_zmax/100.)
724 >                dev_zmin = dev_zmax/100.;
725          xmax = dev_zmin * tan(PI/180./2. * odev.v.horiz);
726          xmin = -xmax;
727          d = odev.v.hoff * (xmax - xmin);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines