POV-Ray : Newsgroups : povray.programming : Reserved words in pov-ray Server Time
25 Dec 2024 22:43:28 EST (-0500)
  Reserved words in pov-ray (Message 1 to 5 of 5)  
From: Edmund Horner
Subject: Reserved words in pov-ray
Date: 2 Dec 1999 08:19:04
Message: <384671c8@news.povray.org>
I've noticed that many new primitives added and suggested for the povray
source, invent new reserved words for their arguments.  For example:

lparse {
    orientation_fwd y
    orientation_right x

    (... more stuff ...)
    }

Is it not possible to recycle existing words like (for this example)
"forward" and "right" ?

Are these extisting words bound to their meanings as applied to camera?

(This was my first post to povray.programming)


Post a reply to this message

From: Chris Huff
Subject: Re: Reserved words in pov-ray
Date: 2 Dec 1999 08:23:31
Message: <chrishuff_99-DF7384.08234202121999@news.povray.org>
In article <384671c8@news.povray.org>, "Edmund Horner" 
<edm### [at] geocitiescom> wrote:

> I've noticed that many new primitives added and suggested for the povray
> source, invent new reserved words for their arguments.  For example:
> 
> lparse {
>     orientation_fwd y
>     orientation_right x
> 
>     (... more stuff ...)
>     }
> 
> Is it not possible to recycle existing words like (for this example)
> "forward" and "right" ?
> 
> Are these extisting words bound to their meanings as applied to camera?
> 
> (This was my first post to povray.programming)

It is quite possible to "recycle" existing keywords, an example would be 
the method keyword in the media sampling patches. Another would be my 
blob pattern and blob pigment patches. Sometimes the author just doesn't 
think of it, other times it makes the syntax much clearer if a new 
keyword is used instead of recycling an older one.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Edmund Horner
Subject: Re: Reserved words in pov-ray
Date: 2 Dec 1999 09:51:50
Message: <38468786@news.povray.org>
So: it is possible, and up to the developer's discretion.

Thank you, this was exactly the kind of answer I was looking for.

Edmund.

"Chris Huff" <chr### [at] yahoocom> wrote in message
news:chrishuff_99-DF7384.08234202121999@news.povray.org...
> In article <384671c8@news.povray.org>, "Edmund Horner"
> <edm### [at] geocitiescom> wrote:
>
> > I've noticed that many new primitives added and suggested for the povray
> > source, invent new reserved words for their arguments.  For example:
> >
> > lparse {
> >     orientation_fwd y
> >     orientation_right x
> >
> >     (... more stuff ...)
> >     }
> >
> > Is it not possible to recycle existing words like (for this example)
> > "forward" and "right" ?
> >
> > Are these extisting words bound to their meanings as applied to camera?
> >
> > (This was my first post to povray.programming)
>
> It is quite possible to "recycle" existing keywords, an example would be
> the method keyword in the media sampling patches. Another would be my
> blob pattern and blob pigment patches. Sometimes the author just doesn't
> think of it, other times it makes the syntax much clearer if a new
> keyword is used instead of recycling an older one.
>
> --
> Chris Huff
> e-mail: chr### [at] yahoocom
> Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Mark Wagner
Subject: Re: Reserved words in pov-ray
Date: 3 Dec 1999 01:12:28
Message: <38475f4c@news.povray.org>
Edmund Horner wrote in message <38468786@news.povray.org>...
>So: it is possible, and up to the developer's discretion.
>
Mostly.  One exception I ran into was with adding a 'perlin noise' pattern.
I would have liked to use the keywords "octaves" and "lambda" for specifying
parameters for the pattern, but they were already used by turbulence, which
is parsed at the same time as pattern modifiers.

Mark


Post a reply to this message

From: Chris Huff
Subject: Re: Reserved words in pov-ray
Date: 3 Dec 1999 06:35:31
Message: <chrishuff_99-823210.06354403121999@news.povray.org>
If you are talking about what I think you are, that can be easily worked 
around by enclosing the pattern parameters in curly brackets, like this:
perlin {octaves 5 lambda 0.5}

Actually, I think turbulence should use a similar syntax. Too late to 
change it now, though...

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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