Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1567 - trunk/Engine/PixelSamplers
- Date: Thu, 26 Jul 2007 16:53:15 -0600 (MDT)
Author: bigler
Date: Thu Jul 26 16:53:15 2007
New Revision: 1567
Modified:
trunk/Engine/PixelSamplers/JitterSampler.cc
trunk/Engine/PixelSamplers/SingleSampler.cc
Log:
Engine/PixelSamplers/JitterSampler.cc
Engine/PixelSamplers/SingleSampler.cc
Don't produce square pixels by default. If you want square pixels
make sure your hfov/vfov are set properly with your image size.
Modified: trunk/Engine/PixelSamplers/JitterSampler.cc
==============================================================================
--- trunk/Engine/PixelSamplers/JitterSampler.cc (original)
+++ trunk/Engine/PixelSamplers/JitterSampler.cc Thu Jul 26 16:53:15 2007
@@ -68,7 +68,7 @@
// Set up the scale from -1 to 1
ci.xscale = (Real)2/ci.xres;
- ci.yscale = ci.xscale;
+ ci.yscale = (Real)2/ci.yres;
ci.xoffset = (-ci.xres+1)*(Real)0.5*ci.xscale; // Offset to pixel center
ci.yoffset = (-ci.yres+1)*(Real)0.5*ci.yscale;
Modified: trunk/Engine/PixelSamplers/SingleSampler.cc
==============================================================================
--- trunk/Engine/PixelSamplers/SingleSampler.cc (original)
+++ trunk/Engine/PixelSamplers/SingleSampler.cc Thu Jul 26 16:53:15 2007
@@ -35,7 +35,7 @@
// Set up the scale from -1 to 1
ci.xscale = (Real)2/xres;
- ci.yscale = ci.xscale;
+ ci.yscale = (Real)2/yres;
ci.xoffset = (-xres/(Real)2+(Real)0.5)*ci.xscale; // Offset to pixel center
ci.yoffset = (-yres/(Real)2+(Real)0.5)*ci.yscale;
context.renderer->setupDisplayChannel(context);
- [MANTA] r1567 - trunk/Engine/PixelSamplers, bigler, 07/26/2007
Archive powered by MHonArc 2.6.16.