|
|
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
|
|
|
|
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
|
|