POV-Ray : Newsgroups : povray.general : POV-Ray lighting model vs Rayshade : Re: POV-Ray lighting model vs Rayshade Server Time
30 Jul 2024 20:27:34 EDT (-0400)
  Re: POV-Ray lighting model vs Rayshade  
From: Grim Reaper
Date: 8 Jun 2008 05:50:00
Message: <web.484baa224c6c80f26863987c0@news.povray.org>
> 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}
> }

Your example works for me to, but it seems to only work when the ambient and rgb
shares rgb values, that is the red component is more than zero for both. The
following for example doesn't work as expected.

camera {location <0,0,-1> look_at 0}
light_source {   <-4,75 ,-10   >, rgb 1}

sphere
{
   <0,0,3>,1
   pigment {rgb <0.8, 0, 0>}
   finish
   {
      ambient <0, 0, 1>  phong 0.5
   }
}


Post a reply to this message

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