|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 19 Mar 2002 10:30:40 -0500, Ron Parker <ron### [at] povrayorg> wrote:
> Loops, too.
Sounds great.
> They're just not part of the syntax.
Is this a bonus pack for patch writers or it will be boundled with Profesional
Edition ? ;-)
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> On 19 Mar 2002 10:30:40 -0500, Ron Parker <ron### [at] povrayorg> wrote:
>> Loops, too.
>
> Sounds great.
>
>> They're just not part of the syntax.
>
> Is this a bonus pack for patch writers or it will be boundled with Profesional
> Edition ? ;-)
What, assembly-language-like bytecode isn't good enough for you? Kids these
days...
I think at the moment that it's a bonus pack for patch writers. I don't know
what the Team's plans are WRT the debugging features, but you can probably
place large bets on the syntax not changing before 3.5.
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}
Post a reply to this message
|
|
| |
| |
|
|
From: Christoph Hormann
Subject: Re: function optimization question
Date: 19 Mar 2002 11:04:02
Message: <3C976170.93CD802F@gmx.de>
|
|
|
| |
| |
|
|
Ron Parker wrote:
>
> [...]
> > Is this a bonus pack for patch writers or it will be boundled with Profesional
> > Edition ? ;-)
>
> What, assembly-language-like bytecode isn't good enough for you? Kids these
> days...
>
;-)
Anyway it would be great if there was some kind of documentation for such
hidden features. Not neccessarily in the user docs, but maybe included in
the source code package.
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 18 Mar. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 19 Mar 2002 10:41:16 -0500, Ron Parker <ron### [at] povrayorg> wrote:
> What, assembly-language-like bytecode isn't good enough for you? Kids these
> days...
My asked for my daughter. She likes building functions in macros and render in
one pass ;-)
> I think at the moment that it's a bonus pack for patch writers. I don't know
> what the Team's plans are WRT the debugging features
http://news.povray.org/3c2caae6@news.povray.org
> but you can probably
> place large bets on the syntax not changing before 3.5.
it's dream of many people I think
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Tue, 19 Mar 2002 17:04:00 +0100, Christoph Hormann wrote:
>
>
> Ron Parker wrote:
>>
>> [...]
>> > Is this a bonus pack for patch writers or it will be boundled with Profesional
>> > Edition ? ;-)
>>
>> What, assembly-language-like bytecode isn't good enough for you? Kids these
>> days...
>>
>
> ;-)
>
> Anyway it would be great if there was some kind of documentation for such
> hidden features. Not neccessarily in the user docs, but maybe included in
> the source code package.
There is no source code package yet, right? And when there is, there will
be the same documentation I used to find this feature.
That documentation looks something like this:
else if(Token.Token_Id == STRING_LITERAL_TOKEN)
{
FNCode_SetFlag(2, Token.Token_String);
Get_Token();
if(Token.Token_Id == COMMA_TOKEN)
{
Get_Token();
if(Token.Token_Id != STRING_LITERAL_TOKEN)
Expectation_Error("valid function expression");
FNCode_SetFlag(1, Token.Token_String);
}
else
{
Unget_Token();
expression = FNSyntax_ParseExpression();
}
}
--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> On 19 Mar 2002 10:41:16 -0500, Ron Parker <ron### [at] povrayorg> wrote:
>> What, assembly-language-like bytecode isn't good enough for you? Kids these
>> days...
>
> My asked for my daughter. She likes building functions in macros and render in
> one pass ;-)
>
>> I think at the moment that it's a bonus pack for patch writers. I don't know
>> what the Team's plans are WRT the debugging features
>
> http://news.povray.org/3c2caae6@news.povray.org
Well, there ya go then. Straight from the horse's mouth. Of course, since
it's just turned off with a compile-time switch, enterprising patch writers
will be able to turn it back on easily.
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 19 Mar 2002 11:11:22 -0500, Ron Parker <ron### [at] povrayorg> wrote:
> That documentation looks something like this:
and it's very similiar to 6.1.6.6 chapter :-)
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> On 19 Mar 2002 11:11:22 -0500, Ron Parker <ron### [at] povrayorg> wrote:
>> That documentation looks something like this:
>
> and it's very similiar to 6.1.6.6 chapter :-)
I'm obviously missing something... there is no 6.1.6.6???
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 19 Mar 2002 11:26:13 -0500, Ron Parker <ron### [at] povrayorg> wrote:
> > > That documentation looks something like this:
> >
> > and it's very similiar to 6.1.6.6 chapter :-)
>
> I'm obviously missing something... there is no 6.1.6.6???
It was supposed to be a joke since there is also no "else if(Token.Token_Id ==
STRING_LITERAL_TOKEN)" in my installation of documentation ;-)
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> On 19 Mar 2002 11:26:13 -0500, Ron Parker <ron### [at] povrayorg> wrote:
>> > > That documentation looks something like this:
>> >
>> > and it's very similiar to 6.1.6.6 chapter :-)
>>
>> I'm obviously missing something... there is no 6.1.6.6???
>
> It was supposed to be a joke since there is also no "else if(Token.Token_Id ==
> STRING_LITERAL_TOKEN)" in my installation of documentation ;-)
That's because you don't have the source code package, and all the
documentation it customarily comes with.
--
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |