POV-Ray : Newsgroups : povray.general : POV-Ray lighting model vs Rayshade : Re: POV-Ray lighting model vs Rayshade Server Time
30 Jul 2024 20:25:39 EDT (-0400)
  Re: POV-Ray lighting model vs Rayshade  
From: Chris B
Date: 7 Jun 2008 05:19:46
Message: <484a52b2$1@news.povray.org>
"Grim Reaper" <sup### [at] hotmailcom> wrote in message 
news:web.484923ac4c6c80f26863987c0@news.povray.org...
> Alain <ele### [at] netscapenet> 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

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