|
![](/i/fill.gif) |
"Grim Reaper" <sup### [at] hotmail com> wrote in message
news:web.484923ac4c6c80f26863987c0@news.povray.org...
> Alain <ele### [at] netscape net> wrote:
>
>> In POV-Ray you can always set those parameters with a full colour instead
>> of
>> shades of gray. diffuse 1 get promoted to diffuse<1,1,1>.
>>
>> The following are all legal:
>> ambient <1,0.5,0.1>/10 // give a red tint to your shadowed areas. Also to
>> the
>> rest of the object.
>> diffuse <0.2, 1, 0.898> // This object will apears blue-green
>> specular <0.5,0.3,0.8> // bluish megenta specular highlights.
>> phong <0,1,0> // green phong highlight
>>
>> If you want rgb value in the 0-255 range, just divide the colour vector
>> by 255.
>
> Tried it, but the only one that allows a vector is ambient, the others do
> not.
> Also the ambient vector does not work as expected, instead of setting the
> ambient colour to that colour it just seems to change it to the equivalent
> percentage (float) value.
>
Ambient seems to work the way I would expect it to when a colour is
specified, so the following code shows up as mainly red, even though the
pigment is more yellow.
camera {location <0,0,-1> look_at 0}
light_source { <-4,75 ,-10 >, rgb 1}
sphere {<0,0,3>,1
pigment {rgb <0.5,1,0>}
finish {ambient <1,0,0> phong 0.5}
}
Diffuse, Specular and Phong in the 3.6.1 help are listed as accepting an
'Amount', rather than a 'Color' and POV-Ray 3.6.1 whinges about it when a
colour is specified. Can anyone verify the behaviour of the 3.7 beta?
Regards,
Chris B.
Post a reply to this message
|
![](/i/fill.gif) |