POV-Ray : Newsgroups : moray.win : color multipling : Re: color multipling Server Time
28 Jul 2024 12:21:21 EDT (-0400)
  Re: color multipling  
From: Ken
Date: 2 Oct 2000 00:29:17
Message: <39D80E1E.EF5D9CF@pacbell.net>
Arne Kleinophorst wrote:
> 
> Hi there,
> 
> got a problem with a premade povray scene i wanted to export to moray.
> Now i have a texture which is using a predefined color (rgb
> <bla,bla,bla>) and then uses this color as a reference, but multiplies
> it.
> 
> e.g.: color*0.6
> 
> is there any way i can do that with moray or which is the correct
> formula to calculate those values by hand?
> Help would be appreciated

POV-Ray as you guessed takes care of the math for you. If you need
to convert a multiplied color vector <> then you will have to do
so for each color in the vector statement. 

Examples: 

rgb< 1, 1, 1>*0.5 becomes rgb< 0.5, 0.5, 0.5>

rgb< 1, 0.5, 0.25>*0.5 becomes rgb< 0.5, 0.25, 0.125>

etc...

-- 
Ken Tyler


Post a reply to this message

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