POV-Ray : Newsgroups : povray.general : #declare AmbientLight seems to have no effect in 3.7 : Re: #declare AmbientLight seems to have no effect in 3.7 Server Time
5 Jul 2024 10:52:28 EDT (-0400)
  Re: #declare AmbientLight seems to have no effect in 3.7  
From: Alain
Date: 4 Jan 2015 15:58:14
Message: <54a9a966@news.povray.org>

> I noticed in 3.7 the #declare AmbientLight seems to have no effect. I have used
> it and changed the values in wide ranges within the 0-1 value range, and it
> seemed to do nothing to brighten up any part of my image.
>
>
>

"AmbientLight" is a user defined variable: ALL builtin variables are 
always all lowercase. It can be used for anything, even if it have 
uterly no relation with the name used, like this:

#if(AmbientLight)sphere{0,10 pigment{rgb 1}}#end

Or this:

sphere{1, AmbientLight pigment{rgb<1,0.2,0.3>}finish{ambient 0 diffuse 
0.7 metallic AmbienLight brillance 2*AmbientLight}
}

If you #declare AmbientLight in your scene and don't use that user 
variable, it can't have any effect.

ambient_lihts in the global_settings section is multiplied with the 
ambient component of the finish.
This works ONLY in non-radiosity scenes.

When you render any scene using radiosity, the ambient of ALL finishes 
are turned OFF. You need to use the emission keyword in the finishes 
that you intend to actualy glow and illuminate the surounding surfaces.
"emission" in the finish works similarly to the same for medias.



Alain


Post a reply to this message

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