POV-Ray : Newsgroups : povray.newusers : Anti-aliasing Server Time
5 Sep 2024 12:16:01 EDT (-0400)
  Anti-aliasing (Message 6 to 15 of 55)  
<<< Previous 5 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: John VanSickle
Subject: Re: Anti-aliasing
Date: 31 Mar 2002 11:51:42
Message: <3CA73F75.D5CEDF48@hotmail.com>
Warp wrote:
> 
> JRG <jrg### [at] hotmailcom> wrote:
> > If this doesn't work either, render at bigger resolution and re-size
> > your picture with your favourite paint program.
> 
>   How is this different from using +a0.0?

+a0.0 forces all pixels to go to the full depth.

+a0.1 at a higher resolution simulates a minimum depth of anti-aliasing,
without forcing full depth for all pixels.

A minimum aa depth might be a useful feature.

-- 
Rusty is rendering!


Post a reply to this message

From: Warp
Subject: Re: Anti-aliasing
Date: 31 Mar 2002 13:59:58
Message: <3ca75cae@news.povray.org>
JRG <jrg### [at] hotmailcom> wrote:
> Anyway, IMHO, it's better to render at bigger resolution. This is a pretty common
> technique to avoid many AA pitfalls.

  I still don't understand how that's different from using +a0.0.
(What +a0.0 does in practice is exactly what you propose: It kind of renders
an image at higher resultion and "scales" it down to the desired resolution.
This happens because it sends the extra rays for *each* pixel regardless of
what there is in the image; that's exactly the same as rendering at higher
resolution. You can control the extra resolution with +r.)

-- 
#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: Warp
Subject: Re: Anti-aliasing
Date: 31 Mar 2002 14:01:24
Message: <3ca75d03@news.povray.org>
John VanSickle <evi### [at] hotmailcom> wrote:
> +a0.0 forces all pixels to go to the full depth.

  Ie. exactly what rendering at higher resolution does.

> +a0.1 at a higher resolution simulates a minimum depth of anti-aliasing,
> without forcing full depth for all pixels.

  Yes, but rendering at higher resolution forces povray to shoot more rays
even though it wouldn't be necessary.

-- 
#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: Christopher James Huff
Subject: Re: Anti-aliasing
Date: 31 Mar 2002 15:13:26
Message: <chrishuff-0E6284.15142531032002@netplex.aussie.org>
In article <3ca75d03@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> > +a0.1 at a higher resolution simulates a minimum depth of anti-aliasing,
> > without forcing full depth for all pixels.
> 
>   Yes, but rendering at higher resolution forces povray to shoot more rays
> even though it wouldn't be necessary.

+a0.0 forces it to shoot all the rays for every pixel. Rendering at a 
higher resolution and resizing lets you control the minimum sampling 
density (making your objects more likely to be visible) while still 
taking advantage of adaptive sampling for faster rendering.
An additional "minimum samples" control would do the same thing, without 
the additional external step of reducing the final image in size, which 
will give different results with different programs.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Chris Becker
Subject: Re: Anti-aliasing
Date: 31 Mar 2002 15:29:22
Message: <3ca771a2$1@news.povray.org>
+a0.0 worked perfectly. Plus it fixed some artifacts I had with image maps.
Thanks a bunch!!


"Warp" <war### [at] tagpovrayorg> wrote in message
news:3ca678ed@news.povray.org...
> Chris Becker <cmb### [at] ritedu> wrote:
> > I have a very thin object that is not showing up correctly because some
> > pixels pick it up and others don't hence creating jaggies, even with
> > anti-aliasing. My question is, what do I adjust in anti-aliasing to
improve
> > this? And does increasing or decreasing the threshold provide for a
better
> > sample?
>
>   Try +a0.0 if it helps. (Note that it will slow down the rendering a
lot.)
>
> --
> #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: Kari Kivisalo
Subject: Re: Anti-aliasing
Date: 31 Mar 2002 22:21:49
Message: <3CA7D24E.49AECDA6@luxlab.com>
Currently this is the best povray can do (+a0.0 +r9). Notice
the aliasing artefacts on the horizontal lines. 
http://luxlab.com/tmp/aa.png

Rendered at 500% resolution (+a0.3 +r3), low-pass filtered
(Gaussian 2.5 pixels) and resampled. 
http://luxlab.com/tmp/aa_hq.png

I like the one with clean lines.


_____________
Kari Kivisalo


Post a reply to this message

From: Norbert Kern
Subject: Re: Anti-aliasing
Date: 1 Apr 2002 02:33:32
Message: <3ca80d4c@news.povray.org>
> Rendered at 500% resolution (+a0.3 +r3), low-pass filtered
> (Gaussian 2.5 pixels) and resampled.
> http://luxlab.com/tmp/aa_hq.png
>
> I like the one with clean lines.
>
>
> _____________
> Kari Kivisalo


Kari, what is the difference between your method and rendering at 500 %,
applying a mosaic filter (5 pixels) and resizing with method "nearest
neighbor"?

Norbert


Post a reply to this message

From: Peter Popov
Subject: Re: Anti-aliasing
Date: 1 Apr 2002 04:40:25
Message: <8hagau0e2k27vdonrgp55dd1u8r0lp6kll@4ax.com>
On Mon, 1 Apr 2002 09:33:30 +0200, "Norbert Kern"
<nor### [at] t-onlinede> wrote:

>Kari, what is the difference between your method and rendering at 500 %,
>applying a mosaic filter (5 pixels) and resizing with method "nearest
>neighbor"?

Gaussian blur uses a Gaussian distribution of samples and is more
'natural' than a mere average. They are both low-pass filters, one
just happens to be closer to reality, IMHO.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Norbert Kern
Subject: Re: Anti-aliasing
Date: 1 Apr 2002 06:36:00
Message: <3ca84620$1@news.povray.org>
> Gaussian blur uses a Gaussian distribution of samples and is more
> 'natural' than a mere average. They are both low-pass filters, one
> just happens to be closer to reality, IMHO.
>
>
> Peter Popov ICQ : 15002700


thanx

Norbert


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Anti-aliasing
Date: 1 Apr 2002 12:31:36
Message: <3CA89977.BA06A28B@luxlab.com>
Norbert Kern wrote:
>
> Kari, what is the difference between your method and rendering at 500 %,
> applying a mosaic filter (5 pixels) and resizing with method "nearest
> neighbor"?

http://luxlab.com/tmp/aa_mosaic.png

Scene (thin lines) from http://www.povworld.org/povray/aa.html

plane{z,0
  pigment{gradient y
    pigment_map{
      [0 rgb 1]
      [0.47 rgb 1]
      [0.47 rgb 0]
      [0.53 rgb 0]
      [0.53 rgb 1]
      [1 rgb 1]
    }
  }
  finish{ambient 1} scale .1 rotate y*-50
}

camera{location <0,0,-5> look_at 0}


The most important part is the Gaussian blur. I used 500% resolution
just to get those very thin lines. For normal a scene 200% to 300% and
1 to 1.5 pixel blur radius should be enough. The 50% blur radius seemed
to be the minimum required to prevent visible aliasing. The image will
look soft. Sharpening filter will just bring back the the jagged edges.
It's a delicate balance between artefect free and sharp image :)


_____________
Kari Kivisalo


Post a reply to this message

<<< Previous 5 Messages Goto Latest 10 Messages Next 10 Messages >>>

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