POV-Ray : Newsgroups : povray.programming : How do I use the new INI and command line option system in POVRay 3.5? Server Time
23 Dec 2024 11:12:33 EST (-0500)
  How do I use the new INI and command line option system in POVRay 3.5? (Message 1 to 5 of 5)  
From: Lee Begg
Subject: How do I use the new INI and command line option system in POVRay 3.5?
Date: 23 Oct 2002 21:00:29
Message: <3db7462c@news.povray.org>
After waiting over 24 hours with no response, I'm trying again.

I am hacking the old PVMPOV patch for POVRay 3.1 to POVRay 3.5.  There 
appears that there is a large change in the way INI and command line 
options set the underlying variables.

Does anyone have any pointers or examples?  The documentation for it is 
nonexistant (afaik).

Thanks
Lee Begg


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: How do I use the new INI and command line option system in POVRay 3.5?
Date: 24 Oct 2002 04:44:42
Message: <3db7b2fa@news.povray.org>
In article <3db7462c@news.povray.org> , Lee Begg <lln### [at] paradisenetnz>  
wrote:

> After waiting over 24 hours with no response, I'm trying again.
>
> I am hacking the old PVMPOV patch for POVRay 3.1 to POVRay 3.5.  There
> appears that there is a large change in the way INI and command line
> options set the underlying variables.
>
> Does anyone have any pointers or examples?  The documentation for it is
> nonexistant (afaik).

Like all other parts of the POV-Ray source code, you have to go through it
and find out yourself.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Lee Begg
Subject: Re: How do I use the new INI and command line option system in POVRay 3.5?
Date: 24 Oct 2002 05:17:58
Message: <3db7bac0@news.povray.org>
Thorsten Froehlich wrote:

> In article <3db7462c@news.povray.org> , Lee Begg <lln### [at] paradisenetnz>
> wrote:
> 
>> After waiting over 24 hours with no response, I'm trying again.
>>
>> I am hacking the old PVMPOV patch for POVRay 3.1 to POVRay 3.5.  There
>> appears that there is a large change in the way INI and command line
>> options set the underlying variables.
>>
>> Does anyone have any pointers or examples?  The documentation for it is
>> nonexistant (afaik).
> 
> Like all other parts of the POV-Ray source code, you have to go through it
> and find out yourself.

That is what I have been doing.  There is no central place of this code... I 
think I see bits of it across atleast 5 files.

I guess I will muddle though it... but I would have thought that either the 
POVRay developers would be helpful, or atleast some patch developers might 
expalain how they when about it.

> 
>     Thorsten
> 

What do you do in terms of POVRay development?  Are you upset because you 
are in the same boat (trying to figure out what to do with only the code to 
help?)

Regards
Lee


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: How do I use the new INI and command line option system in POVRay 3.5?
Date: 24 Oct 2002 06:07:38
Message: <3db7c66a@news.povray.org>
In article <3db7bac0@news.povray.org> , Lee Begg <lln### [at] paradisenetnz>  
wrote:

> That is what I have been doing.  There is no central place of this code... I
> think I see bits of it across atleast 5 files.

Not really.  There is a structure to it.  First you add a new kPOVAttrib_xxx
constant in povmsgid.h, then you enter the constant and its option names in
either or both of the tables Ini_Parser_Tab and/or Cmd_Parser_Table, where
as you may guess from the existing order, order matters.  Unless you need
kUseSpecialHandler optin.cpp will then do the parsing for you.  Now you only
have to receive the message in povmsrec.cpp and turn it into the internal
state.  To be able to send the data, extract it from the internal state in
povmsend.cpp .  That is all.

> I guess I will muddle though it... but I would have thought that either the
> POVRay developers would be helpful, or atleast some patch developers might
> expalain how they when about it.

Well, as the whole code is not documented, that is how it works when
"learning" POV-Ray.

> What do you do in terms of POVRay development?  Are you upset because you
> are in the same boat (trying to figure out what to do with only the code to
> help?)

No, I wrote that code :-)  There are many places that are not documented,
not just this part (also this part is documented, just not publicly).  One
just has to get used to it.  And occasionally a change may break something
else.  One gets over this setback and fixes the problem; and moves on.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Lee Begg
Subject: Re: How do I use the new INI and command line option system in POVRay 3.5?
Date: 24 Oct 2002 07:22:47
Message: <3db7d801@news.povray.org>
Thorsten Froehlich wrote:

> In article <3db7bac0@news.povray.org> , Lee Begg <lln### [at] paradisenetnz>
> wrote:
> 
>> That is what I have been doing.  There is no central place of this
>> code... I think I see bits of it across atleast 5 files.
> 
> Not really.  There is a structure to it.  First you add a new
> kPOVAttrib_xxx constant in povmsgid.h, then you enter the constant and its
> option names in either or both of the tables Ini_Parser_Tab and/or
> Cmd_Parser_Table, where
> as you may guess from the existing order, order matters.  Unless you need
> kUseSpecialHandler optin.cpp will then do the parsing for you.  Now you
> only have to receive the message in povmsrec.cpp and turn it into the
> internal
> state.  To be able to send the data, extract it from the internal state in
> povmsend.cpp .  That is all.

Thanks.

That was exact what I was after.

> 
>> I guess I will muddle though it... but I would have thought that either
>> the POVRay developers would be helpful, or atleast some patch developers
>> might expalain how they when about it.
> 
> Well, as the whole code is not documented, that is how it works when
> "learning" POV-Ray.
> 
>> What do you do in terms of POVRay development?  Are you upset because you
>> are in the same boat (trying to figure out what to do with only the code
>> to help?)
> 
> No, I wrote that code :-)  There are many places that are not documented,
> not just this part (also this part is documented, just not publicly).  One
> just has to get used to it.  And occasionally a change may break something
> else.  One gets over this setback and fixes the problem; and moves on.

Well... I guess I should be a bit more careful with my code (across 3 open 
source products)  :-)

I can understand that.  Perhaps there should be a page on the website with 
gems like this one.

> 
>     Thorsten

Thanks again.

Expect a PVMPOV patch in the next week or so  :-)

Later
Lee Begg


Post a reply to this message

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