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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/mip-cam.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/mip-cam.diderot

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

revision 754, Thu Apr 7 14:55:33 2011 UTC revision 755, Thu Apr 7 15:03:21 2011 UTC
# Line 47  Line 47 
47    
48  strand RayCast (int ui, int vi)  strand RayCast (int ui, int vi)
49  {  {
50      // HEY (want) would like to say:      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);
51      // real rayU = lerp(-0.5, ui, imgResU-0.5, -camUmax, camUmax)      real rayV = lerp(-camVmax, camVmax, -0.5, real(vi), real(imgResV)-0.5);
52      // HEY (BUG) C syntax error with "real(ui) - -0.5" vs "real(ui) + 0.5";      // HEY (BUG) C syntax error with "real(ui) - -0.5" vs "real(ui) + 0.5";
53      // generated C code looks like "(float)p_ui_0--0.5e0f"      // generated C code looks like "(float)p_ui_0--0.5e0f"
54      real rayU = 2.0*camUmax*(real(ui) + 0.5)/real(imgResU) - camUmax;  //    real rayU = 2.0*camUmax*(real(ui) + 0.5)/real(imgResU) - camUmax;
55      real rayV = 2.0*camVmax*(real(vi) + 0.5)/real(imgResV) - camVmax;  //    real rayV = 2.0*camVmax*(real(vi) + 0.5)/real(imgResV) - camVmax;
56      vec3 rayVec = (camDist*camN + rayU*camU + rayV*camV)/camDist;      vec3 rayVec = (camDist*camN + rayU*camU + rayV*camV)/camDist;
57    
58      real rayN = camVspNear;      real rayN = camVspNear;

Legend:
Removed from v.754  
changed lines
  Added in v.755

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