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

SCM Repository

[diderot] Diff of /trunk/rtest/tests/sum-ghp/sum-ghp.diderot
ViewVC logotype

Diff of /trunk/rtest/tests/sum-ghp/sum-ghp.diderot

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

revision 2635, Mon May 26 14:06:39 2014 UTC revision 2636, Tue May 27 16:18:36 2014 UTC
# Line 1  Line 1 
1    /*! \file sum-ghp.diderot
2     *
3     * \author Gordon Kindlmann
4     *
5     * does summation of view-space components of Hessian • gradient
6     */
7    
8  // sum-ghp:  /*
9  //   * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
10  // does summation of view-space components of Hessian • gradient   * All rights reserved.
11     */
12    
13  vec3 camEye = [6.65584, 13.2759, 8.55225];  vec3 camEye = [6.65584, 13.2759, 8.55225];
14  vec3 camAt = [0.0, 0.0, 0.0];  vec3 camAt = [0, 0, 0];
15  vec3 camUp = [0.0, 0.0, 1.0];  vec3 camUp = [0, 0, 1];
16  real camNear = -1.0;  real camNear = -1.0;
17  real camFar = 1.0;  real camFar = 1.0;
18  real camFOV = 6.0;  real camFOV = 6.0;
# Line 22  Line 29 
29  real camVmax = tan(camFOV*π/360.0)*camDist;  real camVmax = tan(camFOV*π/360.0)*camDist;
30  real camUmax = camVmax*real(imgResU)/real(imgResV);  real camUmax = camVmax*real(imgResU)/real(imgResV);
31    
32  field#2(3)[] F = bspln3 ⊛ load("../../data/ring.nrrd");  field#2(3)[] F = bspln3 ⊛ image("../../data/ring.nrrd");
33    
34  strand RayCast (int ui, int vi) {  strand RayCast (int ui, int vi) {
35      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);

Legend:
Removed from v.2635  
changed lines
  Added in v.2636

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