POV-Ray : Newsgroups : povray.newusers : without light, why are my objects not black : Re: without light, why are my objects not black Server Time
4 Nov 2024 17:34:02 EST (-0500)
  Re: without light, why are my objects not black  
From: Tor Olav Kristensen
Date: 9 Jul 2003 19:14:03
Message: <Xns93B4CC8DC81Dtorolavkhotmailcom@204.213.191.226>
"oldmicah" <nomail@nomail> wrote in
news:web.3f0c91c95c737d0e9cfc34200@news.povray.org: 

> ABX wrote:
>>Read carefully paragraphs in "6.7.3.1  Ambient" chapter in POV manual.
> 
> Embarassingly enough, you don't even need to read it carefully.  Never
> occurred to me that ambient default might be something other than 0. 
> It works well and many thanks.
> 
> So then I added Wood texture to the shelves, and I immediately ran
> into the same glow in the dark shelves.  initially I tried this:
> texture { T_Wood2 }
> finish { diffuse 0.8 ambient 0 }
> 
> no luck, so then, thinking that the finish needed to be applied
> directly to the texture, not to the object, I tried this:
> texture { T_Wood2 finish {diffuse 0.8 ambient 0 }}
> 
> Still no luck.  Looking at Woods.inc, I don't see that they have
> zero'd out the ambient in the textures, so I'm guessing that I will
> have to manually copy and paste bits from woods.inc and roll my own
> wood textures incorporating 'finish {ambient 0}'.
> 
> Is there an easier way?  Will I have to do this with all of the
> 'canned' textures included with POV?


The last part of section 6.7.3.1 gives a clue:

"You may also specify the overall ambient light source used when 
calculating the ambient lighting of an object using the global 
ambient_light setting. The formula is given by Ambient = Finish_Ambient * 
Global_Ambient_Light_Source See section "Ambient Light" for details."

Now if you follow the "Ambient Light" hyperlink you will arrive at
section 6.11.2, where you can see that you can control the overall
amount of ambient light e.g. like this:

global_settings { ambient_light color rgb <0, 0, 0> }

(This will effectively remove all ambient light in the scene.)


Tor Olav


Post a reply to this message

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