Text archives Help
- From: abhinav@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r904 - trunk/fox/afr_demo/Engine/ImageTraversers
- Date: Tue, 7 Feb 2006 19:16:14 -0700 (MST)
Author: abhinav
Date: Tue Feb 7 19:16:13 2006
New Revision: 904
Modified:
trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverser.cc
Log:
fixed image set routines with proper x,y coordinates. Note that the debug
window is disabled for now. Also the fragment used to set image is asumed to
have same max size as the raypacket.
Modified: trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverser.cc
==============================================================================
--- trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverser.cc
(original)
+++ trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverser.cc Tue
Feb 7 19:16:13 2006
@@ -412,7 +412,9 @@
// Specify the pixel.
int raypos = (j-start)*5+i;
rays.setPixel(raypos, 0, px, py);
- f.addElement((int)px, (int)py, 0);
+
f.addElement((int)(newSampleSet[myID][j].sample[TEMPORAL_SAMPLE].viewCoord[0]
+ offset[i][0]),
+
(int)(newSampleSet[myID][j].sample[TEMPORAL_SAMPLE].viewCoord[1] +
offset[i][1]),
+ 0);
rays.setColor(raypos, color[myID][raypos]);
}
}
@@ -569,7 +571,7 @@
// Specify the position and color pointer for the packet element.
rays.setPixel(i, 0, px, py);
- frag.addElement((int)px, (int)py, 0);
+ frag.addElement((int)(newSample[myID][fi].viewCoord[0]),
(int)(newSample[myID][fi].viewCoord[1]), 0);
rays.setColor(i, color[myID][i]);
coherenceCount++;
if(!spatialCoherence ||
coherenceCount>=6)//kdtree[myID].getTileSize(tindex)/10)
- [MANTA] r904 - trunk/fox/afr_demo/Engine/ImageTraversers, abhinav, 02/07/2006
Archive powered by MHonArc 2.6.16.