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

SCM Repository

[diderot] Diff of /trunk/test/vr-phong.diderot
ViewVC logotype

Diff of /trunk/test/vr-phong.diderot

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

revision 128, Thu Jul 1 17:55:29 2010 UTC revision 243, Fri Aug 6 15:27:47 2010 UTC
# Line 4  Line 4 
4  //  //
5    
6  input string dataFile;          // name of dataset  input string dataFile;          // name of dataset
7    input string txfFile;           // name of transfer-function file
8  input real stepSz;              // size of steps  input real stepSz;              // size of steps
9  input vec3 lightDir;  input vec3 lightDir;
10  input vec3 lightRGB;  input vec3 lightRGB;
# Line 21  Line 22 
22  //field#1(3)[] F = convolve (bspln3, img);  //field#1(3)[] F = convolve (bspln3, img);
23  field#2(3)[] F = convolve (bspln3, img);  field#2(3)[] F = convolve (bspln3, img);
24    
25  field#0(1)[4] txf = convolve (tent, load("txf-rgba.nrrd"));  field#0(1)[4] txf = convolve (tent, load(txfFile));
26    
27  actor RayCast (int row, int col)  actor RayCast (int row, int col)
28  {  {
29      vec3        pos = orig + real(row)*rVec + real(col)*cVec;      vec3        pos = orig + real(row)*rVec + real(col)*cVec;
30      vec3        dir = (pos - eye)/|pos - eye|;      vec3        dir = (pos - eye)/|pos - eye|;
31      real        t = 0.0;      real        t = 0.0;
32      vec3        rayRGB = [0.0, 0.0, 0.0];      output vec3 rayRGB = [0.0, 0.0, 0.0];
33      real        rayTransp = 1.0;      real        rayTransp = 1.0;
34    
35      update      update

Legend:
Removed from v.128  
changed lines
  Added in v.243

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