POV-Ray : Newsgroups : povray.beta-test : Focal blur aperture has no effect? Server Time
30 Jul 2024 18:23:00 EDT (-0400)
  Focal blur aperture has no effect? (Message 1 to 5 of 5)  
From: Warp
Subject: Focal blur aperture has no effect?
Date: 18 Oct 2001 06:20:35
Message: <3bceacf3@news.povray.org>
Why focal blur aperture has no effect on cameras other than the perspective
one? Some focal blur is calculated with the other cameras (details farther
away get a bit smoother) but for some reason it seems that the user-defined
aperture value is ignored.
  Not good.

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


Post a reply to this message

From: Warp
Subject: Solution (Was: Focal blur aperture has no effect?)
Date: 18 Oct 2001 07:01:01
Message: <3bceb66d@news.povray.org>
I found the problem: In the function create_ray() in render.cpp the
jitter_camera_ray() function is not called in the other camera types, but
only in the perspective camera.
  Adding this before each initialize_ray_container_state() call seems to make
it work:

      if (Focal_Blur_Is_Used)
      {
        jitter_camera_ray(Ray, ray_number);
      }

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


Post a reply to this message

From: Warp
Subject: Re: Solution
Date: 19 Oct 2001 15:07:32
Message: <3bd079f3@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
:   I found the problem: In the function create_ray() in render.cpp the
: jitter_camera_ray() function is not called in the other camera types, but
: only in the perspective camera.
:   Adding this before each initialize_ray_container_state() call seems to make
: it work:

  No comments to this? Good idea? Bad idea? Worth fixing? (Personally I think
it is.)

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


Post a reply to this message

From: JRG
Subject: Re: Solution
Date: 19 Oct 2001 15:36:23
Message: <3bd080b7$1@news.povray.org>
If this fixes the problem you described (I do not know much about
programming, so I can't say much more) then that bug must be fixed the way
you said. Period. It would be great if every bug could be fixed so quickly
:)

--
Jonathan.

"Warp" <war### [at] tagpovrayorg> ha scritto nel messaggio
news:3bd079f3@news.povray.org...
> Warp <war### [at] tagpovrayorg> wrote:
> :   I found the problem: In the function create_ray() in render.cpp the
> : jitter_camera_ray() function is not called in the other camera types,
but
> : only in the perspective camera.
> :   Adding this before each initialize_ray_container_state() call seems to
make
> : it work:
>
>   No comments to this? Good idea? Bad idea? Worth fixing? (Personally I
think
> it is.)
>
> --
> #macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
> rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
> ],13),8)-3,10>#end blob{N(array[6]{11117333955,
> 7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Tony[B]
Subject: Re: Solution
Date: 19 Oct 2001 17:22:42
Message: <3bd099a2@news.povray.org>
Wonderful idea. Simple solution. Onward! :)


Post a reply to this message

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