POV-Ray : Newsgroups : povray.general : Howto manually calculate color values having filter and transient Server Time
31 Jul 2024 16:25:48 EDT (-0400)
  Howto manually calculate color values having filter and transient (Message 1 to 2 of 2)  
From: Wolf
Subject: Howto manually calculate color values having filter and transient
Date: 29 Nov 2006 13:40:00
Message: <web.456dd3302105b46cedd244720@news.povray.org>
Hi,

For my PovClipse project I need to show a quick color preview of Povray
colors, thus I have to calculate the red, green and blue color parts shown
by the display from a Povray rgbf/rgbt/rgbft color.

I have no problem displaying an rgbt color where the transient part is
between 0.0 and 1.0, the Povray docs are pretty clear in this case.

But I have the following questions:

=> Assuming a transient rgbt <1.0, 0.5, 0.2, [TRANISENT]> color and a
background color of rgb<1.0, 1.0, 0.0>, how do I manually calculate the red
green and blue display color values for transient values being negative or


Filter:
=> Assuming a filter rgbf <1.0, 0.5, 0.2, [FILTER]> color and a background
color of rgb<1.0, 1.0, 0.0>, how do I manually calculate the red green and


=> If I have an rgbft color, would it be correct to calculate 2 separate rgb
values using just the filter and the transient values and build the average
of these 2 colors?

Thanks a lot!

Best regards,
Wolf


Post a reply to this message

From: Slime
Subject: Re: Howto manually calculate color values having filter and transient
Date: 30 Nov 2006 00:55:49
Message: <456e7265$1@news.povray.org>
I believe the word is "transmit."

To my knowledge, the math applied to get a result color is:

filtered color = (front color) * (background color) * [FILTER] + (front
color) * (1 - [FILTER])
final color = (background color) * [TRANSMIT] + (filtered color) * (1 -
[TRANSMIT])

I'm not positive about the filter stuff, but I'm pretty sure about the
transmit stuff. The math applies even when filter or transmit are outside
the range [0,1].

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


Post a reply to this message

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