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

SCM Repository

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

Diff of /branches/lamont/test/vr-lite-cam/vr-lite-cam.diderot

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

branches/vis12/test/vr-lite-cam.diderot revision 1685, Sun Jan 22 15:23:36 2012 UTC branches/vis12/test/vr-lite-cam/vr-lite-cam.diderot revision 1931, Wed Jun 27 12:46:58 2012 UTC
# Line 6  Line 6 
6  // The main thing missing from this is a more general transfer function  // The main thing missing from this is a more general transfer function
7  //  //
8  // process output with:  // process output with:
9  // unu reshape -i vr-lite-cam.txt -s 4 480 345 | overrgb -i - -b 0.1 0.15 0.2 -g 1.2 -o - | unu quantize -b 8 -min 0 -max 255  -o vr-lite-cam.png  // overrgb -i out.nrrd -b 0.1 0.15 0.2 -g 1.2 -o - | unu quantize -b 8 -min 0 -max 255  -o vr-lite-cam.png
10    
11  //string dataFile = "../data/txs-pad3.nrrd";  //string dataFile = "../data/txs-pad3.nrrd";
12  //vec3 camEye = [25.0, 15.0, 10.0];  //vec3 camEye = [25.0, 15.0, 10.0];
# Line 21  Line 21 
21  //real valOpacMin = 0.15;          // highest value with opacity 0.0  //real valOpacMin = 0.15;          // highest value with opacity 0.0
22  //real valOpacMax = 0.20;          // lowest value with opacity 1.0  //real valOpacMax = 0.20;          // lowest value with opacity 1.0
23    
24  string dataFile = "../data/vfrhand-nohip.nhdr";  input vec3 camEye = [127.331, -1322.05, 272.53];
25  vec3 camEye = [127.331, -1322.05, 272.53];  input vec3 camAt = [63.0, 82.6536, 98.0];
26  vec3 camAt = [63.0, 82.6536, 98.0];  input vec3 camUp = [0.9987, 0.0459166, -0.0221267];
27  vec3 camUp = [0.9987, 0.0459166, -0.0221267];  input real camNear = -78.0;
28  real camNear = -78.0;  input real camFar = 78.0;
29  real camFar = 78.0;  input real camFOV = 5.0;
30  real camFOV = 5.0;  input int imgResU = 480;
31  int imgResU = 480;  input int imgResV = 345;
32  int imgResV = 345;  input real rayStep = 0.1;
33  real rayStep = 0.1;  input real valOpacMin = 400.0;        // 400.0 for skin, 1150.0 for bone
34  real valOpacMin = 400.0;        // 400.0 for skin, 1150.0 for bone  input real valOpacMax = 700.0;        // 700.0 for skin, 1450.0 for bone
 real valOpacMax = 700.0;        // 700.0 for skin, 1450.0 for bone  
35    
36  real camDist = |camAt - camEye|;  real camDist = |camAt - camEye|;
37  real camVspNear = camDist + camNear;  real camVspNear = camDist + camNear;
# Line 52  Line 51 
51  real phongKs = 0.45;  real phongKs = 0.45;
52  real phongSp = 50.0;  real phongSp = 50.0;
53    
54  //field#4(3)[] F =  bspln5 ⊛ load(dataFile);  //field#4(3)[] F =  bspln5 ⊛ image(dataFile);
55  field#2(3)[] F =  bspln3 ⊛ load(dataFile);  field#2(3)[] F =  bspln3 ⊛ image("../../data/vfrhand-nohip.nhdr");
56  //field#1(3)[] F = ctmr ⊛ load(dataFile);  //field#1(3)[] F = ctmr ⊛ image(dataFile);
57  //field#1(3)[] F = c1tent ⊛ load(dataFile);  //field#1(3)[] F = c1tent ⊛ image(dataFile);
58    
59  strand RayCast (int ui, int vi)  strand RayCast (int ui, int vi)
60  {  {

Legend:
Removed from v.1685  
changed lines
  Added in v.1931

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