POV-Ray : Newsgroups : povray.binaries.images : Lensflare update Server Time
5 Nov 2024 20:21:07 EST (-0500)
  Lensflare update (Message 1 to 3 of 3)  
From: Zeger Knaepen
Subject: Lensflare update
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


 

From: Jellby
Subject: Re: Lensflare update
Date: 20 May 2005 11:48:43
Message: <ead1m2-76j.ln1@badulaque.unex.es>
Among other things, Zeger Knaepen saw fit to write:

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

But is it always important?

I mean, let's guess this simple scene renders in 4 s without lens flares,
that means the flares add 35 s or ~900%.
If you have anether scene that takes 1 h (3600 s) without flares, would it
take 1 h 35s (3635 s) or 10 h (36000 s) with lens flares?

-- 
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Lensflare update
Date: 20 May 2005 13:44:19
Message: <428e21f3$1@news.povray.org>
"Jellby" <me### [at] privacynet> wrote in message
news:ead### [at] badulaqueunexes...
> Among other things, Zeger Knaepen saw fit to write:
>
> > Rendertime is 39s... actually quite slow :-/
>
> But is it always important?
>
> I mean, let's guess this simple scene renders in 4 s without lens flares,
> that means the flares add 35 s or ~900%.
> If you have anether scene that takes 1 h (3600 s) without flares, would it
> take 1 h 35s (3635 s) or 10 h (36000 s) with lens flares?

I suppose not, that wouldn't be logical...
but, let's try!

A scene without lensflares, with 50000 randomly placed spheres takes 33s.
The same scene with lensflares takes 173s :-/

The same scene again, with only 500 spheres and no lensflares, takes 3s.
And with lensflares: 45s

without spheres or lensflares: 3s (wow, spheres are fast :))
without spheres but with lensflares: 41s

All done with +sp8 +ep4 +am2 +a0.1 +r2

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

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