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

SCM Repository

[diderot] Diff of /branches/vis12-cl/test/tinput.diderot
ViewVC logotype

Diff of /branches/vis12-cl/test/tinput.diderot

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

revision 2402, Sat Jul 27 13:55:03 2013 UTC revision 3226, Thu Jul 23 11:33:34 2015 UTC
# Line 8  Line 8 
8  // process output with:  // process output with:
9  // unu reshape -i mip.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  // unu reshape -i mip.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
10    
11  input image(3)[] dataFile = image("../data/txs-pad3.nrrd")  input image(3)[] dataFile = image("../data/txs-pad3.nrrd");
12  field#2(3)[] F =  bspln3 ⊛ dataFile;  field#2(3)[] F =  bspln3 ⊛ dataFile;
13  input vec3 camEye = [25.0, 15.0, 10.0];  input vec3 camEye = [25.0, 15.0, 10.0];
14  input vec3 camAt = [3.0, 3.0, 3.0];  input vec3 camAt = [3.0, 3.0, 3.0];
# Line 78  Line 78 
78            // ########## BEGIN per-sample code            // ########## BEGIN per-sample code
79            real val = F(rayPos);            real val = F(rayPos);
80            if (val > valOpacMin) {  // we have some opacity            if (val > valOpacMin) {  // we have some opacity
               vec3 grad = ∇F(rayPos); // (here as easy target for optimization)  
81                vec3 norm = normalize(-∇F(rayPos));                vec3 norm = normalize(-∇F(rayPos));
82                real alpha = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));                real alpha = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));
83                real ld = max(0.0, norm • lightDir);                real ld = max(0.0, norm • lightDir);

Legend:
Removed from v.2402  
changed lines
  Added in v.3226

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