POV-Ray : Newsgroups : povray.binaries.images : Bragging on : Re: Bragging on Server Time
2 Nov 2024 14:16:34 EDT (-0400)
  Re: Bragging on  
From: clipka
Date: 29 Aug 2010 13:00:33
Message: <4c7a9231@news.povray.org>
Showing off a patch to generate different bokehs.

The scene is essentially the same as earlier in this thread, except that 
the tiny bright sphere now has a radius of 0.01. blur_samples are set to 
100,1000, confidence 0.99, variance 1/1000.

image #1:

     bokeh {
       pigment {
         spherical
         pigment_map {
           [0.0  color rgb 0.0]
           [0.05 color rgb 1.0]
           [0.1  color rgb 0.5]
           [0.15 color rgb 0.2]
           [0.4  color rgb 0.1]
           [1.0  color rgb 0.1]
         }
         scale 0.5
         translate <0.5,0.5,0>
       }
     }

image #2:

     bokeh {
       pigment {
         spherical
         pigment_map {
           [0.0  color rgb 0.0]
           [0.1  color rgb 0.2]
           [0.2  color rgb 0.6]
           [0.5  color rgb 0.9]
           [1.0  color rgb 1.0]
         }
         scale 0.5
         translate <0.5,0.5,0>
       }
     }

image #3:

     bokeh {
       pigment {
         image_map { png "focal_blur_test_bokeh.png" }
       }
     }

image #4:

The bokeh used in image #3.

NB: Colored bokehs are not possible; only the greyscale value of the 
pigment given is evaluated.

Coordinate range is optimized for image maps: <0,0,0> to <1,1,0>.


Post a reply to this message


Attachments:
Download 'focal_blur_test_bokeh1.png' (242 KB) Download 'focal_blur_test_bokeh2.png' (234 KB) Download 'focal_blur_test_bokeh3.png' (234 KB) Download 'focal_blur_test_bokeh.png' (13 KB)

Preview of image 'focal_blur_test_bokeh1.png'
focal_blur_test_bokeh1.png

Preview of image 'focal_blur_test_bokeh2.png'
focal_blur_test_bokeh2.png

Preview of image 'focal_blur_test_bokeh3.png'
focal_blur_test_bokeh3.png

Preview of image 'focal_blur_test_bokeh.png'
focal_blur_test_bokeh.png


 

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