|
![](/i/fill.gif) |
"Meenal" <mee### [at] student umass edu> wrote in message
news:web.42a8e0a772645079199eef0@news.povray.org...
>
>
> 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. The
> coordinates of the box will no longer be integers. So how will the pixels
> in the rendered 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
I get the feeling that you don't really understand how raytracing works.
POV-Ray shoots a ray from the camera location for every pixel. That ray will
hit zero or more objects, but since it's an infinitely thin ray, it can not ever
half-hit an object.
The problem is, as you say, that an arbitray object does not "project" exactly
onto integer pixels, so you will get artifacts called aliasing. To minimize
those artifacts, you can ask POV-Ray to shoot more than 1 ray per pixel and the
average result of all those rays will be the color of the pixel.
cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x) // ZK http://www.povplace.com
Post a reply to this message
|
![](/i/fill.gif) |