POV-Ray : Newsgroups : povray.binaries.scene-files : Additive transparency : Re: Additive transparency Server Time
1 Sep 2024 18:19:38 EDT (-0400)
  Re: Additive transparency  
From: Nathan Kopp
Date: 20 May 2005 00:19:17
Message: <428d6545$1@news.povray.org>
"Slime" <fak### [at] emailaddress> wrote...
> Macro to create transparent colors which "add" to the background rather
than
> replacing it. See "Additive transparency" in p.b.i.
>
> (Include file contains instructions for usage.)
>
>  - Slime
>  [ http://www.slimeland.com/ ]
>

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


Post a reply to this message

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