POV-Ray : Newsgroups : povray.binaries.images : Lensflare : Re: Lensflare Server Time
9 Aug 2024 01:23:35 EDT (-0400)
  Re: Lensflare  
From: Zeger Knaepen
Date: 20 May 2005 04:44:29
Message: <428da36d$1@news.povray.org>
"Nathan Kopp" <pov### [at] nkoppmailshellcom> wrote in message
news:428d6510$1@news.povray.org...
> Another way to do additive transparancy is used in NKFlare (really old but
> fun lens flare system written by yours truly
> http://www.nathan.kopp.com/nkflare.htm).  The technique works like this:
>
> 1) use the color you want, but set transmit to 0.5
> 2) use "ambient 2" (instead of "ambient 1")
> 3) use "refraction 2.0" (instead of "refraction on")
>
> It's this last bit... the "refraction 2.0", combined with the 0.5 transmit,
> yeilds a 100% transmission.  Then, then "ambient 2", coupled with the 50%
> that's left over from the transmit component, gives you the 100% of whatever
> color you specify, which is added to the 100% transmission.
>
> -Nathan

Ah, yes, that seems to work also :)

Maybe I should do some testing as to find out which technique is the fastest.

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.