POV-Ray : Newsgroups : povray.binaries.images : Odd blur effect: squared spheres : Re: Odd blur effect: squared spheres Server Time
13 Jul 2025 07:18:42 EDT (-0400)
  Re: Odd blur effect: squared spheres  
From: Zeger Knaepen
Date: 27 Aug 2002 16:28:14
Message: <3d6be0de$1@news.povray.org>
> Hi,
>
> why not just make a circular pattern by generating the Points like before
> in a rectangular area and then testing  [x^2+y^2 > Radius] for the Point
> to find out if it lies in the Circle. If the Condition is True, just generate
> another Point until it's inside the Circle. This is a common and fast way to
> get circular Points.
Because in real life, it aren't perfect circles, but regular polygons.  So it
would be better if POV-Ray had an option to use regular polygons instead of
perfect circles.  That in combination with non-clipped focal blur, would allow
us to create realistic focal-blurred images.

cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK http://www.povplace.be.tf


Post a reply to this message

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