POV-Ray : Newsgroups : povray.advanced-users : additive transparency for image_maps? : Re: additive transparency for image_maps? Server Time
8 Jul 2024 17:46:35 EDT (-0400)
  Re: additive transparency for image_maps?  
From: Christian Froeschlin
Date: 13 Dec 2007 16:25:52
Message: <4761a360@news.povray.org>
stbenge wrote:

> You're first suggestion makes more sense, to add one function to another 
> inside a function block. I will give that a try. Thanks :)

You're welcome. Maybe I don't understand something here ;)

By additively combining pigments, don't you mean that if
one pigment A evaluates to <r1,g1,b1> at some point and
pigment B evaluates to <r2,g2,b2> at that point that
A+B should simply evaluate to <r1+r2,g1+g2,b1+b2>?

And wouldn't average {pigment_map {[A] [B]}} evaluate to 
<(r1+r2)/2,(g1+g2)/2,(b1+b2)/2> = 0.5*<r1+r2,g1+g2,b1+b2>,
so scaling it up by a factor of two should do the trick?


Post a reply to this message

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