POV-Ray : Newsgroups : povray.general : Re: Toggling on and off "everything at ambient rgb 1" Server Time
6 Nov 2024 10:23:39 EST (-0500)
  Re: Toggling on and off "everything at ambient rgb 1" (Message 1 to 2 of 2)  
From: Chambers
Subject: Re: Toggling on and off "everything at ambient rgb 1"
Date: 17 Jul 2004 22:05:00
Message: <web.40f9d996160555c3b852f9380@news.povray.org>
Insert this into every object's finish:

 #if (full_ambient > 0)
  ambient 1 diffuse 0
 #end

And, at the beginning of your scene file:

 #declare full_ambient=0;

When you want to set everything to superbright, set full_ambient to 1.

.....Chambers

PS After thinking a little, instead of setting diffuse to 0, you could put
every light into another conditional and just turn them off (to speed up
rendering).


Post a reply to this message

From: Warp
Subject: Re: Toggling on and off "everything at ambient rgb 1"
Date: 18 Jul 2004 05:25:46
Message: <40fa421a@news.povray.org>
Chambers <bdc### [at] yahoocom> wrote:
> Insert this into every object's finish:

>  #if (full_ambient > 0)
>   ambient 1 diffuse 0
>  #end

  That's only necessary for object which already have some ambient and
diffuse defined (which is quite seldom the case). For objects which do
not have anything defined it's enough to put something like this at
the beginning of the scene:

#default { finish { ambient 1 diffuse 0 } }

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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