POV-Ray : Newsgroups : povray.binaries.scene-files : Additive transparency Server Time
1 Sep 2024 16:14:39 EDT (-0400)
  Additive transparency (Message 1 to 2 of 2)  
From: Slime
Subject: Additive transparency
Date: 3 Feb 2005 19:49:49
Message: <4202c6ad$1@news.povray.org>
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/ ]


Post a reply to this message


Attachments:
Download 'additiveblend.inc.txt' (2 KB)

From: Nathan Kopp
Subject: Re: Additive transparency
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.