POV-Ray : Newsgroups : povray.binaries.images : Lensflare update : Lensflare update Server Time
8 Aug 2024 18:21:04 EDT (-0400)
  Lensflare update  
From: Zeger Knaepen
Date: 19 May 2005 20:58:43
Message: <428d3643@news.povray.org>
I cleaned up my code a bit.  The attached image was created with this
scene-file:


--begin code--
#include "lensflare.inc"

LoadLensflareAt("test.flr",<500,500,2000>)
LoadLensflareAt("50-300mm zoom.flr",<750,-500,2000>)
AddFlares()

sky_sphere {
 pigment {
  bozo
  scale <1,.5,.5>
  color_map {
   [.4 rgb <.4,.5,.9>*0]
   [1 rgb 1]
  }
  warp {turbulence .5 lambda 3}
 }
}
--end code--

Next step is to make it easy to adjust the brightness, size, ... of (parts of)
the lensflares
and of course, complete the lensflare-definitionfiles :)

Rendertime is 39s... actually quite slow :-/

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.com


Post a reply to this message


Attachments:
Download 'lensflareincludetest.jpg' (55 KB)

Preview of image 'lensflareincludetest.jpg'
lensflareincludetest.jpg


 

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