POV-Ray : Newsgroups : povray.windows : Include color-changes in ini-files. possible? : Re: Include color-changes in ini-files. possible? Server Time: 5 Jul 2008 03:40:51 GMT
  Re: Include color-changes in ini-files. possible?  
From: Charles C
Date: 19 Oct 2006 22:45:00
One possible way:

in thefile.ini:
Declare=Color_R=1
Declare=Color_G=1
Declare=Color_B=0

in thefile.pov:
//default Color_ values:
#ifndef(Color_R) #declare Color_R=.5; #end
#ifndef(Color_G) #declare Color_G=.5; #end
#ifndef(Color_B) #declare Color_B=.5; #end

background{rgb <Color_R,Color_G,ColorB>}


> The script-area which makes me problems look´s like this:
>
> // Background:
> background { color rgb <0,0,0>}
>
> // Lights:
> light_source {
>  <0,-46.0887,-92.0887>  // Latitude,Longitude,Radius: 45,0,130.233
>  color rgb <1,1,1>
>


Post a reply to this message

Copyright 1991-2004 POV-Team™