POV-Ray : Newsgroups : povray.unofficial.patches : Does media method 3 take aa_threshold into account? Server Time
2 Nov 2024 09:20:27 EDT (-0400)
  Does media method 3 take aa_threshold into account? (Message 1 to 2 of 2)  
From: Jerome M  BERGER
Subject: Does media method 3 take aa_threshold into account?
Date: 7 Dec 1999 14:06:20
Message: <384D5A71.57231B6C@enst.fr>
From what I understood of the code, it looks like media method 3 uses a
fixed AA threshold of 0.2 and completely ignores the value of the
aa_threhold parameter. What did I overlook?

	I'm referring to lines 732 and 768 in media.c in function
sample_media_rec which I believe should be replaced by something like:

DBL aa_threshold=1000; /* or any very big value */
IMEDIA IMedia=*Media_List;
while (IMedia) {
  if (IMedia->AA_Threshold < aa_threshold)
    aa_threshold=IMedia->AA_Threshold;
  IMedia=IMedia->Next_Media;
}
if ( Colour_Distance(C1, C2) > aa_threshold ) /* this is line 732 */
...

	Or maybe, to get faster result, precalculate the threshold and make it
a paramter of sample_media_rec...

		Jerome
-- 
*******************************

* they'll tell you what can't * mailto:ber### [at] inamecom
* be done and why...          * http://www.enst.fr/~jberger
* Then do it.                 *
*******************************


Post a reply to this message

From: Nathan Kopp
Subject: Re: Does media method 3 take aa_threshold into account?
Date: 7 Dec 1999 22:53:14
Message: <384dd62a@news.povray.org>
You are correct!  This will be fixed in the next release.  Thank you.

-Nathan

Jerome M. BERGER <jbe### [at] enstfr> wrote...
> From what I understood of the code, it looks like media method 3 uses a
> fixed AA threshold of 0.2 and completely ignores the value of the
> aa_threhold parameter. What did I overlook?
>
> I'm referring to lines 732 and 768 in media.c in function
> sample_media_rec which I believe should be replaced by something like:
>
> DBL aa_threshold=1000; /* or any very big value */
> IMEDIA IMedia=*Media_List;
> while (IMedia) {
>   if (IMedia->AA_Threshold < aa_threshold)
>     aa_threshold=IMedia->AA_Threshold;
>   IMedia=IMedia->Next_Media;
> }
> if ( Colour_Distance(C1, C2) > aa_threshold ) /* this is line 732 */
> ...
>
> Or maybe, to get faster result, precalculate the threshold and make it
> a paramter of sample_media_rec...
>
> Jerome
> --
> *******************************

> * they'll tell you what can't * mailto:ber### [at] inamecom
> * be done and why...          * http://www.enst.fr/~jberger
> * Then do it.                 *
> *******************************


Post a reply to this message

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