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.diderot
ViewVC logotype

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

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

revision 312, Tue Aug 17 19:28:52 2010 UTC revision 316, Tue Aug 17 22:17:57 2010 UTC
# Line 12  Line 12 
12  input vec3 rVec;                // vector between pixels vertically  input vec3 rVec;                // vector between pixels vertically
13  input real valOpacMin;          // highest value with opacity 0.0  input real valOpacMin;          // highest value with opacity 0.0
14  input real valOpacMax;          // lowest value with opacity 1.0  input real valOpacMax;          // lowest value with opacity 1.0
15    // valOpacMin,Max pairs for sample datasets:
16    // txs.nrrd 0.15, 0.35
17    // vfrhand-nohip.nhdr, for skin: 200, 500
18    // vfrhand-nohip.nhdr, for bone: 1330, 1630
19    
20  image(3)[] img = load (dataFile);  image(3)[] img = load (dataFile);
21    
# Line 47  Line 51 
51          }          }
52          if (transp < 0.01) {  // early ray termination          if (transp < 0.01) {  // early ray termination
53              transp = 0.0;              transp = 0.0;
             rgba[0] = gray; rgba[1] = gray; rgba[2] = gray;  
             rgba[3] = 1.0-transp;  
54              stabilize;              stabilize;
55          }          }
56          if (t > 40.0) {          if (t > 40.0) {
             // do we have a stabilize() code block?  
             rgba[0] = gray; rgba[1] = gray; rgba[2] = gray;  
             rgba[3] = 1.0-transp;  
57              stabilize;              stabilize;
58          }          }
59          t = t + stepSz;          t = t + stepSz;
60      }      }
61    
62         stabilize {
63            rgba = [gray, gray, gray, 1.0-transp];
64            stabilize;
65         }
66    
67      /* render: output rgba */      /* render: output rgba */
68  }  }
69    

Legend:
Removed from v.312  
changed lines
  Added in v.316

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