POV-Ray : Newsgroups : povray.general : Toggling on and off "everything at ambient rgb 1" : Re: Toggling on and off "everything at ambient rgb 1" Server Time
2 Aug 2024 22:15:51 EDT (-0400)
  Re: Toggling on and off "everything at ambient rgb 1"  
From: Hughes, B 
Date: 18 Jul 2004 05:39:23
Message: <40fa454b$1@news.povray.org>

news:40fa30bd$1@news.povray.org...
>
> If you want to be able to turn on or off the ambient for the whole
> scene at once, you can also take a look at the "ambient_light" in
> global_settings. It won't do much to switch between "ambient 1" and
> something else in each object, but it will allow you to switch
> between "ambient 0" and something else...

Yeah, there isn't really a one-keyword way to set everything in a scene to
ambient rgb <1,1,1> if all ambients are set as something else, e.g. ambient
rgb <0.1,0.2,0.3> in the individual finish statements. Greg might have
thought this was something possible with ambient_light.

As Jerome was implying, even if global_settings {ambient_light 1000} were
used, to try and overcome this, it just can't; since it is only a
multiplier. Anything set to zero will still be zero. This means finish
ambient's should be non-zero for the global ambient to be able to control
the range, whether done from a #default or every texture. Of course, if you
tend to use ambient as a color that'll need compensating for, too.

So if all finishes have default ambients, or higher, then using
ambient_light 10 could work. Checking on that ATM... no, wrong-- at least,
not completely right. Single colors are fine but if more than one color is
used it pushes the whole thing into rgb <1,1,1>, or white,  which isn't
necessarily the original pigment (unless ambient default to begin with).

Bob H.


Post a reply to this message

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