POV-Ray : Newsgroups : povray.programming : Combining POV-Ray colors in a program. : Re: Combining POV-Ray colors in a program. Server Time
15 Jun 2024 06:19:50 EDT (-0400)
  Re: Combining POV-Ray colors in a program.  
From: Slime
Date: 30 Sep 2005 21:55:42
Message: <433dec9e$1@news.povray.org>
> There is no real point in "previewing" a filter or transmit value as the
> result does not depend on the color but that what you call the
"background",
> which actually means the recursive ray-tracing result color.  BUT, that is
> what you cannot just compute by one simple mathematical formula ...


Well, if you display the color over the typical checkerboard background,
then you can filter and transmit that as the background to demonstrate the
color.

I believe the formula Allen is looking for would be something along the
lines of

red = color.red * (1 - color.transmit) * (1 - color.filter) + color.transmit
* whateversbehind.red + color.filter*color.red*whateversbehind.red
(same for green, blue)

I'm not sure if that's right. It should be in the source somewhere (though
not as clearly as this)...

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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