Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/vr-lite-cam.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/vr-lite-cam.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 786, Fri Apr 8 03:34:06 2011 UTC revision 787, Fri Apr 8 03:39:40 2011 UTC
# Line 47  Line 47 
47  real camVmax = tan(camFOV*3.1415926536/360.0)*camDist;  real camVmax = tan(camFOV*3.1415926536/360.0)*camDist;
48  real camUmax = camVmax*real(imgResU)/real(imgResV);  real camUmax = camVmax*real(imgResU)/real(imgResV);
49    
 // HEY (BUG): these:  
 //   vec3 lightVspDir = [1.0, -0.0, 0.0];  
 //   vec3 lightVspDir = [1.0, 0.0, -0.0];  
 // work okay but this:  
 //   vec3 lightVspDir = [1.0, 0.0, 0.0];  
 // does not:  
 // uncaught exception Fail [Fail: E_Slice]  
 //   raised at simplify/eval.sml:266.57  
 //   raised at simplify/eval.sml:183.33-183.47  
50  vec3 lightVspDir = [0.9, -1.0, -2.5];  vec3 lightVspDir = [0.9, -1.0, -2.5];
51  vec3 lightDir = normalize(lightVspDir[0]*camU + lightVspDir[1]*camV + lightVspDir[2]*camN);  vec3 lightDir = normalize(lightVspDir[0]*camU + lightVspDir[1]*camV + lightVspDir[2]*camN);
52    
# Line 109  Line 100 
100             rgba = [gray, gray, gray, 1.0-transp]; /* FIXME */             rgba = [gray, gray, gray, 1.0-transp]; /* FIXME */
101             stabilize;             stabilize;
102         }         }
103         if (t > 40.0) {         if (rayN > camVspFar) {
104             rgba = [gray, gray, gray, 1.0-transp]; /* FIXME */             rgba = [gray, gray, gray, 1.0-transp]; /* FIXME */
105             stabilize;             stabilize;
106         }         }
107         t = t + stepSz;         rayN = rayN + rayStep;
108      }      }
109    
110      stabilize {      stabilize {

Legend:
Removed from v.786  
changed lines
  Added in v.787

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0