POV-Ray : Newsgroups : povray.binaries.images : Crevice grime : Re: Crevice grime Server Time
31 Jul 2024 00:26:52 EDT (-0400)
  Re: Crevice grime  
From: Trevor G Quayle
Date: 17 Mar 2011 09:40:01
Message: <web.4d820efc50dd01dd81c811d20@news.povray.org>
"Edouard" <pov### [at] edouardinfo> wrote:
> > One thing I noticed is that with interpolate 1 there is a distinct shift down
> > and to the left.  Is there a bias in the internal interpolate function?  This is
> > something that I have noticed before with interpolate.
>
> Yeah - it's to do with where you consider the authoritative pixel value to be -
> in the center of the voxel, or in the lower corner.
>
> I remember writing code to correct for exactly that in my DF3 proximity code. I
> need to look at it again, as it might have changed during the 3.7 beta cycle
> (there was a post about interpolation a few months back I recall).
>
> Cheers,
> Edouard.

I added a half pixel shift to the interpolated version and it seems correct that
way.  Looks like it may need updating in 3.7 to correct this.

-tgq


Post a reply to this message

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