POV-Ray : Newsgroups : povray.general : Focal blur (sorry for basic questions) : Re: Focal blur (sorry for basic questions) Server Time
4 Aug 2024 10:23:05 EDT (-0400)
  Re: Focal blur (sorry for basic questions)  
From: Hugo Asm
Date: 22 May 2003 09:29:03
Message: <3eccd09f@news.povray.org>
ABX wrote:
> Can you do more tests with cases I described ?

You're right. It only works when transformations does not change the
distance between focal_point and camera location.

Manuel wrote:
> I can only wait for your response.
> sorry, but I'm really newbie ...

Newbies are welcome! To use focal blur together with camera transformations
such as scale, you could use the code below:

Regards,
Hugo


// Declare vectors and scale factor
#declare Scale = <1,1,1>;
#declare Camera_Location = <0,7,-12> * Scale;
#declare Camera_Lookat   = <0,0,0> * Scale;
#declare Focal_Point     = <0,0,0> * Scale;


// Setup camera
camera {
    location Camera_Location look_at Camera_Lookat

    focal_point Focal_Point
    aperture .8
    blur_samples 20

    // You can still apply other transformations in here
    rotate 45*z
    translate -3*x
}



// Enviroment
light_source { <-100,50,0>, 9000 fade_distance 1 fade_power 2 }
light_source { <-50,100,-100>, .35 shadowless }
plane { y,-1.5  pigment { checker rgb .5 rgb 1 } }
sphere { < 2, 0,  0>,1.5  pigment { rgb <1,.2,0> } }
sphere { <-4, 0, 12>,1.5  pigment { rgb <0,.4,1> } }
sphere { <-6, 0, -5>,1.5  pigment { rgb <1,.8,0> } }
// End


Post a reply to this message

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