POV-Ray : Newsgroups : povray.general : Interpolation method used by POV? : Re: Interpolation method used by POV? Server Time
1 Aug 2024 18:26:58 EDT (-0400)
  Re: Interpolation method used by POV?  
From: Meenal
Date: 9 Jun 2005 20:40:01
Message: <web.42a8e061b5d3c0c69199eef0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Meenal <mee### [at] studentumassedu> wrote:
> > When I shine a light through an object, and then render the image, I get a
> > 2D image. This image is a black and white image with white being the pixels
> > where the objects are. My question is that how does POV decide what pixels
> > will be white and what will be black? Say that a part of an object does not
> > completely cover an entire pixel - what is the value of the pixel
> > considered to be? Is the pixel interpolated to its nearest neighbor - i.e.
> > say morethan half of a pixel is occupied by an object, will the entire
> > pixel be considered an object? How does POV deal with parts of pixels? How
> > does it interpolate those?
>
>   Your description of lights shining through objects, projecting them
> (onto other objects perhaps?) was quite confusing.
>
>   If I understood correctly you just want to know that when an object
> is rendered on screen, how the pixels are colored if, for example, the
> edge of the object only partially covers a pixel.
>
>   When not using antialiasing rays are traced through the center of the
> pixel. If the ray hits the object then the pixel is colored accordingly.
> If the ray does not hit the object then it will be colored according
> to what's behind it (eg. the background).
>
>   If you want a better result you have to turn antialiasing on. This
> causes POV-Ray to shoot more rays in such cases and average the result.
>
> --
>                                                           - Warp




Say I create a box in POV. Then I rotate this box about the x-axis by 63
degrees and the y axis by 72 degrees and then render the image. How will
the pixels in the image be colored off? The box will project onto parts of
some pixels. So if the box projects onto half or more of the pixel, it will
be colored off, and if it projects onto less than half of a pixel it will
not be colored off? Is that how it works?

Meenal


Post a reply to this message

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