POV-Ray : Newsgroups : povray.windows : Include color-changes in ini-files. possible? Server Time: 16 Oct 2008 01:31:39 GMT
  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 16: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?
When it´s possible, how can I do it?

Greetings,

Olaf


Post a reply to this message

From: Warp
Subject: Re: Include color-changes in ini-files. possible?
Date: 19 Oct 2006 16:49:09
Message: <4537ac85@news.povray.org>
Olaf I. <olaf.ikels [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 18: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

Thank you very much for the link, but it doesn´t help me.
I don´t understand the example.

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>


Maybe I´m to stupid for the program? ;-)

Greetings,

Olaf


Post a reply to this message

From: Charles C
Subject: Re: Include color-changes in ini-files. possible?
Date: 19 Oct 2006 22: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>}


> 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

From: Olaf I 
Subject: Re: Include color-changes in ini-files. possible?
Date: 20 Oct 2006 04: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>}
>
>
> > 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>

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.
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 11:56:41
Message: <4538b979@news.povray.org>
Olaf I. <olaf.ikels [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 13:20:01
Message: <web.4538cc2dbb20a1503fc90b9f0@news.povray.org>
Warp <warp [at] tagpovrayorg> wrote:
> Olaf I. <olaf.ikels [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 13: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 14:06:01
Message: <4538d7c8@news.povray.org>
Olaf I. <olaf.ikels [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 14:25:00
Message: <web.4538da96bb20a1503fc90b9f0@news.povray.org>
Nicolas Calimet <pov4grasp [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-2008 Persistence of Vision Raytracer Pty. Ltd.