To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 2532
2531  |  2533
Subject: 
Focal Blur in POV-Ray
Newsgroups: 
lugnet.cad.ray
Date: 
Tue, 27 Dec 2005 20:01:02 GMT
Highlighted: 
(details)
Viewed: 
8297 times
  
I got this to work in POVRay 3.5. I am not sure if it will work for other
versions.

Here is a test render of Xpod set 4415 with focal blur:
http://www.brickshelf.com/gallery/JoJa15/Renders/4415_1e2.png

Here is the same set rendered without focal blur and with some slightly
different light settings:
http://www.brickshelf.com/gallery/JoJa15/Renders/4415_1e.png

Here is how you can add focal blur to a render. Add the following statements
within your camera definition (Within the curly braces).

        focal_point <x,y,z> //replace x,y,z with the coordinates of the
point you want the camera to focus on. In this test I just used the model
center.
        aperture 70 // Replace 70 with your camera aperture setting you want
to use. I would experiment with numbers. A higher number is more blurring
and a lower number is less blurring.
        blur_samples 4 // Replace 4 with your own number. Fewer samples,
faster to render, more samples, higher quality image
        // blur_samples 20

Here is my actual camera statement from my focal blur render:
// Camera (Latitude,Longitude,Radius = 15,30,0)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<501.235,-282.81,-824.713> +
PCT/100.0*<476.968,-255.606,-826.132>,
                       <-121916,-909992,211164>,STEREO)
sky      -y
right    -4/3*x
look_at  <24.2672,-27.2038,1.41896> // calculated
angle    10
rotate   <0,1e-5,0> // Prevent gap between adjacent quads
//test
        focal_point <24.2672,-27.2038,1.41896>
        aperture 70
        blur_samples 20
//orthographic
}

Looking at the render it definitely adds focal blur but I am not too
thrilled with the actual blurring. It looks more fuzzy then a nice blur.
Here is a good example of how to use focal blur in a LEGO render (this is
not my render it is someone else's):
http://www.brickshelf.com/gallery/nicokaiser/cad/modelteam/2556-front.1600.jpg

If anyone else knows of any other techniques to do focal blur or how to
improve the look of a focal blue please let me know.

Hopefully the above information helps someone out.

- John



Message has 1 Reply:
  Re: Focal Blur in POV-Ray
 
I have two comments. First of all, I see in your non-blurred render that the POVRay you have doesn't have Lars Hassing's Torus Patch. Take a look at this page, where Lars describes the problem, and provides the fix: (URL) that the fix is included in (...) (19 years ago, 28-Dec-05, to lugnet.cad.ray)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR