POV-Ray : Newsgroups : povray.beta-test : the lowest pixel getting dimmed : Re: the lowest pixel getting dimmed Server Time
30 Jul 2024 12:27:40 EDT (-0400)
  Re: the lowest pixel getting dimmed  
From: Anders K 
Date: 28 Dec 2001 15:01:58
Message: <3c2ccfb6$1@news.povray.org>
> If you want it centered, one very simple solution is to add one pixel to
the
> width and height of the image.

What if I don't want to add one pixel to the width and height of the image?
For example, one of my POV-Ray projects is creating a set of tiles for a 2D
game. There are hundreds of tiles, and they are rendered by a single file as
an animation. I don't want to have to go in manually with an image editor to
remove one row and column from every single image. Moving the camera works,
but then I need to change the amount I move it by every time I change the
size of the images, and I'm making two sizes of tiles (32x32 and 48x48).

> I think orthographic camera scenes are the only place where this may
matter
> in a very few scenes.  Of course, the above solution will still work fine.

That doesn't change the fact that the current behavior is simply incorrect,
and it is very easy to fix. I know you're probably worried about backwards
compatibility, but as you pointed out, it only makes a big difference on a
few scenes, and even on those scenes it would be much better to have the
camera in the right place anyway.

Anders

--
light_source{6#macro A(B)#declare C=mod(E B);#declare E=(E-C)/B;C#end
#macro B(E)#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(C<3)cylinder
{0(C=<1 2>).2translate<D+C*A(2)A(4)#else intersection{torus{1 .2}box{
-y 2}rotate<-1 0C+1>*90translate<D+1A(2)*2+1#end-2 13>finish{specular
1}pigment{red 1}}#end#end#end#local D=-8;1}B(445000298)B(519053970)B(
483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)


Post a reply to this message

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