POV-Ray : Newsgroups : povray.beta-test : Camera is off by half a pixel : Camera is off by half a pixel Server Time
4 Nov 2024 12:59:47 EST (-0500)
  Camera is off by half a pixel  
From: Anders K 
Date: 16 Oct 2001 19:45:26
Message: <3bccc696@news.povray.org>
Consider this scene (basically a stripped-down version of Insert > Scene
templates > Orthographic scene, with an added background).

camera { orthographic location <0, 0, -1> look_at <0, 0, 0> right 1*x up
1*y }
box { <-.5, -.5, 0>, <.5, .5, 0> pigment { rgb 0 } }
background { blue 1 }

As noted in the comments in the scene template, the box fits exactly in the
view, and thus completely blocks out the background. At least that's what
should happen. However, with anti-aliasing on (use method 2 with no jitter)
you can see a line of blue down the left and bottom side of the image.
Further investigation showed that, indeed, POV-Ray always shifts the image
up and right by half a pixel (whether or not anti-aliasing is on).

POV-Ray 3.5 beta 6, Windows 98, Athlon, 256 MB.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.