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

SCM Repository

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

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

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

revision 850, Tue Apr 19 15:51:51 2011 UTC revision 851, Tue Apr 19 15:52:07 2011 UTC
# Line 1  Line 1 
1  // vr.diderot  // vr-phong.diderot
2  //  //
3  // volume rendering example in Diderot  // volume rendering example in Diderot
4  //  //
5    
6  input string dataFile;          // name of dataset  //input string dataFile;                // name of dataset
7  input string txfFile;           // name of transfer-function file  //input string txfFile;         // name of transfer-function file
8    string dataFile = "../data/txs.nrrd";
9    string txfFile = "../data/dummy-txf-rgba.nrrd";
10  input real stepSz;              // size of steps  input real stepSz;              // size of steps
11  input vec3 lightDir;  input vec3 lightDir;
12  input vec3 lightRGB;  input vec3 lightRGB;
# Line 22  Line 24 
24  //field#1(3)[] F = img (*) bspln3;  //field#1(3)[] F = img (*) bspln3;
25  field#2(3)[] F = img (*) bspln3;  field#2(3)[] F = img (*) bspln3;
26    
27  field#0(1)[4] txf = load(txfFile) ⊛ tent;  image(1)[4] txfImage = load(txfFile);
28    field#0(1)[4] txf = txfImage ⊛ tent;
29    //field#0(1)[4] txf = load(txfFile) ⊛ tent; // BUG
30    
31  strand RayCast (int row, int col)  strand RayCast (int row, int col)
32  {  {

Legend:
Removed from v.850  
changed lines
  Added in v.851

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