POV-Ray : Newsgroups : povray.general : Interpolation method used by POV? : Re: Interpolation method used by POV? Server Time
1 Aug 2024 18:26:08 EDT (-0400)
  Re: Interpolation method used by POV?  
From: Warp
Date: 9 Jun 2005 02:27:09
Message: <42a7e13d@news.povray.org>
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


Post a reply to this message

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