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