POV-Ray : Newsgroups : povray.programming : additional focal blur related option in camera : Re: additional focal blur related option in camera Server Time
17 May 2024 07:23:17 EDT (-0400)
  Re: additional focal blur related option in camera  
From: Raf256
Date: 26 Nov 2005 15:05:58
Message: <eorm53-a5r.ln1@raf256.com>
Thorsten Froehlich <4388a8a5$1@news.povray.org> Saturday 26 of November 2005
19:25

> You don't fix aliasing by taking *fewer* samples, but by taking *more*
> samples.  If you are having problems with too few samples being taken, you
> have poor settings for the focal blur variance.  Taking fewer samples will
> certainly *not* improve the result.

My idea was to force blur to trace at least in example 5 first rays per
pixel, even if they are identical to eachother and even if otherwise they
will be bellow threshold,

one liner:

--- megapov-1.2.1/source/render.cpp     2005-08-23 21:20:33.000000000 +0200
+++ megapov-1.2.1+rmaj/source/render.cpp        2005-11-26
16:29:12.000000000 +0100
@@ -3119,7 +3119,8 @@
     if ((V1[pRED]  < Sample_Threshold[nr-1]) && (V1[pGREEN]  <
Sample_Threshold[nr-1]) &&
         (V1[pBLUE] < Sample_Threshold[nr-1]) && (V1[pTRANSM] <
Sample_Threshold[nr-1]))
     {
-      break;
+      if (nr > Frame.Camera->Blur_Samples / 4) // raf256
+                               break;
     }
   }


of course it is better to just set Sample_Threshold for min_sample first
value to 0

So the idea is to bump up minimal rays traced without affecting rest of
adaptive system... 

I will do some testes after weekend probably



-- 


Post a reply to this message

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