POV-Ray : Newsgroups : povray.windows : Include color-changes in ini-files. possible? Server Time
23 Nov 2024 12:49:33 EST (-0500)
  Include color-changes in ini-files. possible? (Message 1 to 10 of 29)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Olaf I 
Subject: Include color-changes in ini-files. possible?
Date: 19 Oct 2006 12:05:01
Message: <web.4537a1afb456eb3b2f1153170@news.povray.org>
Hello,

i will include changes of background color and the option "shadowless" in an
ini-file.
Is this possible?


Greetings,

Olaf


Post a reply to this message

From: Warp
Subject: Re: Include color-changes in ini-files. possible?
Date: 19 Oct 2006 12:49:09
Message: <4537ac85@news.povray.org>
Olaf I. <ola### [at] ewetelnet> wrote:
> i will include changes of background color and the option "shadowless" in an
> ini-file.
> Is this possible?
> When it?s possible, how can I do it?

http://povray.org/documentation/view/3.6.1/220/#s02_01_02_05_01

-- 
                                                          - Warp


Post a reply to this message

From: Olaf I 
Subject: Re: Include color-changes in ini-files. possible?
Date: 19 Oct 2006 14:25:01
Message: <web.4537c1edbb20a1502f1153170@news.povray.org>
Hello Warp,

> > i will include changes of background color and the option "shadowless" in an
> > ini-file.
> > Is this possible?
> > When it?s possible, how can I do it?
>
> http://povray.org/documentation/view/3.6.1/220/#s02_01_02_05_01






// 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>




Greetings,

Olaf


Post a reply to this message

From: Charles C
Subject: Re: Include color-changes in ini-files. possible?
Date: 19 Oct 2006 18:45:00
Message: <web.4537ff2dbb20a1502f046a7d0@news.povray.org>
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>}



>
> // 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

From: Olaf I 
Subject: Re: Include color-changes in ini-files. possible?
Date: 20 Oct 2006 00:20:00
Message: <web.45384d32bb20a1503fc90b9f0@news.povray.org>
Dear Charles,

> 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>}
>
>

> >
> > // 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>


I have include the part

Declare=Color_R=1
Declare=Color_G=1
Declare=Color_B=0

in my ini-file. No reaction.
I think the ini-file will know exactly what I want.
And I know how I should write change the background and delete the shadows
from the lights.

Olaf


Post a reply to this message

From: Warp
Subject: Re: Include color-changes in ini-files. possible?
Date: 20 Oct 2006 07:56:41
Message: <4538b979@news.povray.org>
Olaf I. <ola### [at] ewetelnet> wrote:
> Thank you for your help, but it doesn?t work.
> I have include the part

> Declare=Color_R=1
> Declare=Color_G=1
> Declare=Color_B=0

> in my ini-file. No reaction.

  Perhaps reading the *whole* post instead of just the first lines would
help?

-- 
                                                          - Warp


Post a reply to this message

From: Olaf I 
Subject: Re: Include color-changes in ini-files. possible?
Date: 20 Oct 2006 09:20:01
Message: <web.4538cc2dbb20a1503fc90b9f0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Olaf I. <ola### [at] ewetelnet> wrote:
> > Thank you for your help, but it doesn?t work.
> > I have include the part
>
> > Declare=Color_R=1
> > Declare=Color_G=1
> > Declare=Color_B=0
>
> > in my ini-file. No reaction.
>
>   Perhaps reading the *whole* post instead of just the first lines would
> help?
>
You mean I should the part under "in thefile.ini:" in my ini-file and the
part under "in thefile.pov:", right?
But this is exactly what i not will!
I will only change the ini-file!!!
Not the pov.file!

I need a ini-file which read the rows under "// Background:" and "//
Lights:"
in my pov-files and change rows how I them need.


Olaf


Post a reply to this message

From: Nicolas Calimet
Subject: Re: Include color-changes in ini-files. possible?
Date: 20 Oct 2006 09:45:38
Message: <4538d302$1@news.povray.org>
> But this is exactly what i not will!
> I will only change the ini-file!!!
> Not the pov.file!

	Did you understand or at least *try* the proposed method?

	- NC


Post a reply to this message

From: Warp
Subject: Re: Include color-changes in ini-files. possible?
Date: 20 Oct 2006 10:06:01
Message: <4538d7c8@news.povray.org>
Olaf I. <ola### [at] ewetelnet> wrote:
> You mean I should the part under "in thefile.ini:" in my ini-file and the
> part under "in thefile.pov:", right?
> But this is exactly what i not will!
> I will only change the ini-file!!!
> Not the pov.file!

  You mean that you have an existing .pov file and that you want to change
its contents without actually editing it?
  Well, that's of course just impossible. You have to modify *something*
in the .pov file if you want to be able to control its behaviour from
outside.

  The bare minimun addition you have to make into the .pov file is to
add an #include line which includes a secondary .inc file, one which
you can modify at will (assuming that for whatever reason you can't
modify the original .pov file any more than that).

  If you absolutely *can't* modify the original .pov file, then it's just
not possible.

-- 
                                                          - Warp


Post a reply to this message

From: Olaf I 
Subject: Re: Include color-changes in ini-files. possible?
Date: 20 Oct 2006 10:25:00
Message: <web.4538da96bb20a1503fc90b9f0@news.povray.org>
Nicolas Calimet <pov### [at] freefr> wrote:
> > But this is exactly what i not will!
> > I will only change the ini-file!!!
> > Not the pov.file!
>
>  Did you understand or at least *try* the proposed method?
>
What I understand is:
By this method I must change the ini-file AND the pov-file.

And this is for me the wrong way, because I have more than 400 pov-files
to render and will not change everyone from the 400 pov-file.
I search a way where I change only the ini-file and the ini-file change by
render all my pov-files.

Olaf


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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