POV-Ray : Newsgroups : povray.newusers : Light without light source? : Re: Light without light source? Server Time
28 Jul 2024 16:23:10 EDT (-0400)
  Re: Light without light source?  
From: Sherry Shaw
Date: 1 Aug 2008 12:21:47
Message: <4893381b@news.povray.org>
Triple Omega wrote:
>There is no mention of the
> ambient light that is on by default, yet it expected me to have no ambient
> light, sharp shadows and an unlit plane when using a spotlight. Maybe someone
> should report this to someone?(I don't know who to contact.)

The problem is that you're writing textures without finishes.  According 
to Help, the default value for ambient is 0.1 (look under "finish"). 
Try using something like this:

sphere {
   <0, 1, 2>, 2
   texture {
     pigment {
       color Yellow
     }
     finish {
       ambient 0
     }
   }
}

plane {
   <0, 1, 0>, -1
   texture {
     pigment {
       checker
       color Red, color Blue
     }
     finish {
       ambient 0
     }
   }
}

You can, of course, make the ambient light go away by changing the 
default texture.  You can also shut off ambient light in global_settings 
(my personal preference, as I don't care for falling back on the default 
texture).  This can be useful for doing quick preliminary renders of a 
scene that's going to be using radiosity or complex lighting 
arrangements (which slow things down):  use an ambient value in your 
finishes somewhere in the neighborhood of 0.3, and then add 
ambient_light 0 to global_settings when you're ready to do radiosity 
renders.  The actual ambient value will then be 0 x 0.3 = 0.

Hope this helps.

--Sherry Shaw

-- 
#macro T(E,N)sphere{x,.4rotate z*E*60translate y*N pigment{wrinkles scale
.3}finish{ambient 1}}#end#local I=0;#while(I<5)T(I,1)T(1-I,-1)#local I=I+
1;#end camera{location-5*z}plane{z,37 pigment{granite color_map{[.7rgb 0]
[1rgb 1]}}finish{ambient 2}}//                                   TenMoons


Post a reply to this message

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