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

Comparing ray/src/hd/rhd_ogl.c (file contents):
Revision 3.12 by gwlarson, Thu Dec 31 13:24:36 1998 UTC vs.
Revision 3.14 by gwlarson, Sun Jan 3 13:40:25 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1999 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ SGI";
# Line 331 | Line 331 | register VIEW  *nv;
331                          dev_input();    /* get resize event */
332                  }
333                  copystruct(&odev.v, nv);        /* setview() already called */
334 #ifdef STEREO
335                copystruct(&vwright, nv);
336                d = eyesepdist / sqrt(nv->hn2);
337                VSUM(vwright.vp, nv->vp, nv->hvec, d);
338                /* setview(&vwright);   -- Unnecessary */
339 #endif
334                  viewflags |= VWCHANGE;
335          }
336 + #ifdef STEREO
337 +        copystruct(&vwright, nv);
338 +        d = eyesepdist / sqrt(nv->hn2);
339 +        VSUM(vwright.vp, nv->vp, nv->hvec, d);
340 +        /* setview(&vwright);   -- Unnecessary */
341 + #endif
342          wipeclean();
343          return(1);
344   }
# Line 857 | Line 857 | setglpersp()                   /* set perspective view in GL */
857                  dev_zmax = 100.;
858          } else {
859                  dev_zmin = 0.5*depthlim[0];
860 <                dev_zmax = 2.0*depthlim[1];
860 >                dev_zmax = 1.25*depthlim[1];
861                  if (dev_zmin > dev_zmax/5.)
862                          dev_zmin = dev_zmax/5.;
863          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines