POV-Ray : Newsgroups : povray.text.scene-files : Focal blur trouble Server Time
1 Nov 2024 17:20:19 EDT (-0400)
  Focal blur trouble (Message 1 to 3 of 3)  
From: Jerome M  BERGER
Subject: Focal blur trouble
Date: 9 Nov 1999 23:37:52
Message: <3828F67B.33D7650B@enst.fr>
The following source gives a brighter image when focal blur is turned
on...

///////////////////////////////// begin
#version 3.1;

#include "colors.inc"

global_settings
{
  assumed_gamma 1.0
}

// ----------------------------------------
camera
{
  location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     4/3*x
  look_at   <0.0, 0.0,  0.0>
	// uncommenting the next three lines brightens up the image
  /*aperture 0.05
  focal_point 0.0 
  blur_samples 40*/
}

sky_sphere
{
  pigment
  {
    gradient y
    color_map { [0.0 color blue 0.6] [1.0 color rgb 1] }
  }
}

light_source
{
  0*x // light's position (translated below)
  color red 1.0  green 1.0  blue 1.0  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------
plane { y, -1 pigment {color rgb <0.7,0.5,0.3>}}

//=========================================
// macro mAlign
//-----------------------------------------
// translate vers P2-P1 si on veut positionner l'objet en P2
#macro mAlign(P1,P2)
#local yV1=vnormalize(P2-P1);
#local xV1=vnormalize(vcross(yV1,z));
#local zV1=vcross(xV1,yV1);
matrix
<xV1.x,xV1.y,xV1.z,yV1.x,yV1.y,yV1.z,zV1.x,zV1.y,zV1.z,P1.x,P1.y,P1.z>
#end

cylinder {
  0, y, 1
  pigment { color Red }
  mAlign (<0, 0, 0>, <1, 1, 1>)
}

//box {
//  -<1000, 1000, 1000>, <1000, 0, 1000>
plane {
  y, 0
  texture {
    pigment {
      gradient x
      pigment_map {
        [ 0.9 color rgbf 0 transmit 1 ]
        [ 0.9 color Blue ]
      }
    }
  }
  texture {
    pigment {
      gradient z
      color_map {
        [ 0.9 color rgbf 0 transmit 1 ]
        [ 0.9 color Blue ]
      }
    }
  }
  translate 0.45*y
}

/*fog
{
  fog_type   2
  distance   10
  color      rgb 0.6 // gray
  fog_offset 0.1
  fog_alt    0.2
  turbulence 0.8
} */

/////////////////////////////////// end

		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: Tim Glover
Subject: Re: Focal blur trouble
Date: 17 Nov 1999 16:35:46
Message: <38331e82.457568945@news.povray.org>
I ran into the same problem working on an entry during the final days
of the "Landmark" IRTC competition.  Still haven't found out the
answer.  Ended up using strong AA and wasn't totally happy with the
results -- really wanted a sharp midrange and out-of-focus foreground
and background  (like shooting with macro lenses)
   
Hope someone else can shed some more light (wait! isn't THAT the
problem <grin>)

tgl### [at] nettallycom


On Tue, 09 Nov 1999 20:37:15 -0800, "Jerome M. BERGER"
<jbe### [at] enstfr> wrote:

>	The following source gives a brighter image when focal blur is turned
>on...
<snip>


Post a reply to this message

From: Jerome M  BERGER
Subject: Re: Focal blur trouble
Date: 17 Nov 1999 17:16:54
Message: <3833292C.90202FE6@enst.fr>
Tim Glover wrote:
> 
> I ran into the same problem working on an entry during the final days
> of the "Landmark" IRTC competition.  Still haven't found out the
> answer.  Ended up using strong AA and wasn't totally happy with the
> results -- really wanted a sharp midrange and out-of-focus foreground
> and background  (like shooting with macro lenses)
> 
> Hope someone else can shed some more light (wait! isn't THAT the
> problem <grin>)
> 
	Nathan Kopp has found the bug in the POV and will have it fixed in the
next release of uvpov... In the meantime, using an assumde_gamma of
sqrt(display gamma) will give you the same brightness when blurred that
you would get with assumed_gamma 1 and no blur...

		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.