POV-Ray : Newsgroups : povray.off-topic : Bokeh, blurring, and POV-Ray : Re: Bokeh, blurring, and POV-Ray Server Time
5 Sep 2024 09:22:32 EDT (-0400)
  Re: Bokeh, blurring, and POV-Ray  
From: clipka
Date: 18 Aug 2009 13:20:04
Message: <4a8ae2c4$1@news.povray.org>
Mike Raiford schrieb:
> Curious, but why is this? Are there any higher sample numbers that give 
> a hexagonal shape?

No, these are the only ones (at least at present).

What POV-Ray actually does is use the largest of several hard-coded 
patterns (plus jitter) that fits the target count, then add some 
arbitrary points to get the target count.

The hard-coded patterns are a 4-sample pattern as well as a 7-sample, 
19-sample and 37-sample pattern. Except for the 4-sample pattern, all of 
these fit nicely on a triangular grid to form a hexagon, which is what 
gives you a hexagonal bokeh if you exactly match these numbers.

The additional random points are then taken from a square grid, which is 
what leads to the square bokeh typical for other sample counts.


Post a reply to this message

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