POV-Ray : Newsgroups : povray.advanced-users : Odd antialiasing behaviour Server Time
29 Jul 2024 14:11:55 EDT (-0400)
  Odd antialiasing behaviour (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Warp
Subject: Odd antialiasing behaviour
Date: 2 Apr 2002 11:27:42
Message: <3ca9dbfe@news.povray.org>
I don't understand the huge difference between using +a0.0 and any value
above 0.0.
  Consider this simple scene:

camera { location -z*10 look_at 0 angle 35 }
light_source { <1000,2000,0>, 1 }
plane
{ y,-1 pigment { checker rgb <1,1,.5>, rgb <.8,.4,.2> }
  rotate <-10,30,-30>
}

  When I rendered it with +a0.01 +am2 +r4, the resulting image is the
following:
http://www.cs.tut.fi/~warp/aa1.jpg

  There are big visible artifacts.
  However, when I rendered it with +a0.0 +am2 +r4, the result is almost
perfect:
http://www.cs.tut.fi/~warp/aa2.jpg

  It doesn't seem to matter how small the threshold value is. If it's larger
than 0, it will cause the artifacts.
  I don't understand why.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Felix Wiemann
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 12:12:57
Message: <itoc8a.e72.ln@linux.local>
Warp wrote:
>   I don't understand the huge difference between using +a0.0 and any
>   value
> above 0.0.
The huge difference is: With +a0.0 every pixel is sampled, with any 
value above only pixels which differ to their neighbours are sampled.

>   Consider this simple scene:
> 
> camera { location -z*10 look_at 0 angle 35 }
> light_source { <1000,2000,0>, 1 }
> plane
> { y,-1 pigment { checker rgb <1,1,.5>, rgb <.8,.4,.2> }
>   rotate <-10,30,-30>
> }
> 
>   When I rendered it with +a0.01 +am2 +r4, the resulting image is the
> following:
> http://www.cs.tut.fi/~warp/aa1.jpg
> 
>   There are big visible artifacts.
>   However, when I rendered it with +a0.0 +am2 +r4, the result is
>   almost
> perfect:
> http://www.cs.tut.fi/~warp/aa2.jpg
> 
>   It doesn't seem to matter how small the threshold value is. If it's
>   larger
> than 0, it will cause the artifacts.
>   I don't understand why.
These artifacts appear because it's coincidence (in that image area) 
which color any pixel has and if two pixels differ or not.
If they differ, samples are taken and it looks as it should look. But 
if they don't differ not the mixed color is used for the pixel but one 
of the unmixed colors. So it's coincidence which color any pixel has in 
the final image.
To avoid this problem it's neccesary to take more than one sample per 
pixel to decide if the pixel must be sampled. So the only workaround 
with the current AA methods is to sample every pixel with +a0.0.
Sorry, I don't speak English very well, so please tell me if it was not 
understandable.
Felix Wiemann


Post a reply to this message

From: Warp
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 12:18:01
Message: <3ca9e7c9@news.povray.org>
Felix Wiemann <Fel### [at] gmxnet> wrote:
> The huge difference is: With +a0.0 every pixel is sampled, with any 
> value above only pixels which differ to their neighbours are sampled.

  Yes, but if the previous pixel was antialiased, its color will differ
from the next pixel no matter where does the ray hit the plane in this
next pixel. The color of the previous pixel is a mix between the light and
dark colors of the plane, and thus is very different from either.
  This would mean that if the pixel at the left of each row is antialiased,
all the pixels in that row should be antialiased as well (because each time
a pixel is antialiased its color will differ radically from the next pixel
regardless of where does the ray hit).
  This is what I don't understand.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Micha Riser
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 14:03:04
Message: <3caa0067@news.povray.org>
Warp wrote:

> Felix Wiemann <Fel### [at] gmxnet> wrote:
>> The huge difference is: With +a0.0 every pixel is sampled, with any
>> value above only pixels which differ to their neighbours are sampled.
> 
>   Yes, but if the previous pixel was antialiased, its color will differ
> from the next pixel no matter where does the ray hit the plane in this
> next pixel. The color of the previous pixel is a mix between the light and
> dark colors of the plane, and thus is very different from either.
>   This would mean that if the pixel at the left of each row is
>   antialiased,
> all the pixels in that row should be antialiased as well (because each
> time a pixel is antialiased its color will differ radically from the next
> pixel regardless of where does the ray hit).

That's how method 1 works. Method 2 does not care about if the previous 
pixel were supersampled or not, instead it just looks at the 4 corners. My 
method 4/5 does as it also looks at the samples previously taken on the 
pixels borders.

- Micha

-- 
objects.povworld.org - The POV-Ray Objects Collection
book.povworld.org    - The POV-Ray Book Project


Post a reply to this message

From:  Light Beam 
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 14:26:42
Message: <3caa05f2@news.povray.org>
So ! what is, for most power-user, the best antialiasing setting for the
final render ? I'm still searching for a good method to render the final
image of most of my scenes... (good antialiasing without blur...?!)


3caa0067@news.povray.org...
> Warp wrote:
>
> > Felix Wiemann <Fel### [at] gmxnet> wrote:
> >> The huge difference is: With +a0.0 every pixel is sampled, with any
> >> value above only pixels which differ to their neighbours are sampled.
> >
> >   Yes, but if the previous pixel was antialiased, its color will differ
> > from the next pixel no matter where does the ray hit the plane in this
> > next pixel. The color of the previous pixel is a mix between the light
and
> > dark colors of the plane, and thus is very different from either.
> >   This would mean that if the pixel at the left of each row is
> >   antialiased,
> > all the pixels in that row should be antialiased as well (because each
> > time a pixel is antialiased its color will differ radically from the
next
> > pixel regardless of where does the ray hit).
>
> That's how method 1 works. Method 2 does not care about if the previous
> pixel were supersampled or not, instead it just looks at the 4 corners. My
> method 4/5 does as it also looks at the samples previously taken on the
> pixels borders.
>
> - Micha
>
> --
> objects.povworld.org - The POV-Ray Objects Collection
> book.povworld.org    - The POV-Ray Book Project


Post a reply to this message

From: Warp
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 14:49:32
Message: <3caa0b4c@news.povray.org>
_Light_Beam_ <fac### [at] aolcom> wrote:
> So ! what is, for most power-user, the best antialiasing setting for the
> final render ? I'm still searching for a good method to render the final
> image of most of my scenes... (good antialiasing without blur...?!)

  The one I used in the second image.
  The bad thing about it is that it's slow.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Jan Walzer
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 14:55:34
Message: <3caa0cb6@news.povray.org>
"_Light_Beam_" <fac### [at] aolcom> wrote:
> So ! what is, for most power-user, the best antialiasing setting for the
                         ^^^^^^^^^^--considering this...
> final render ? I'm still searching for a good method to render the final
> image of most of my scenes... (good antialiasing without blur...?!)

.. you can use: +A0.0 +AM2 +J0.78 +R9 ....


Post a reply to this message

From: Jan Walzer
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 15:02:05
Message: <3caa0e3d@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote:
>   The one I used in the second image.
>   The bad thing about it is that it's slow.

you used +AM2 +R9 ? ... wow ...


Post a reply to this message

From: Warp
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 15:33:27
Message: <3caa1597@news.povray.org>
Jan Walzer <jan### [at] lzernet> wrote:
> you used +AM2 +R9 ? ... wow ...

  Eh? No. I used +r4.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Warp
Subject: Re: Odd antialiasing behaviour
Date: 2 Apr 2002 15:34:25
Message: <3caa15d1@news.povray.org>
Jan Walzer <jan### [at] lzernet> wrote:
> .. you can use: +A0.0 +AM2 +J0.78 +R9 ....

  And wait a year for the image to finish?
  I think +r4 should be enough.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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