|
|
|
|
|
|
| |
| |
|
|
From: Gilles Tran
Subject: #while in normal statements in layered textures
Date: 21 Oct 2001 17:22:54
Message: <3bd33cae@news.povray.org>
|
|
|
| |
| |
|
|
The following code returns a "Parse error : must have at least one entry in
map".
Declaring the layers separately doesn't cause the problem. (Beta 6, WinNT4)
light_source{<-1,1,-1>*5 rgb 1}
#declare txtSol=
texture{
pigment{rgb 1}
normal{
average
normal_map{
#declare i=1;
#while (i<10)
[1 bumps .1 scale i]
#declare i=i+1;
#end
}
}
}
texture{
pigment{rgbt <1,0,0,1>}
normal{
average
normal_map{
#declare i=1;
#while (i<10)
[1 bumps .1 scale i*2]
#declare i=i+1;
#end
}
}
}
plane{y,-1 texture{txtSol}}
--
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Gilles Tran wrote:
>
> The following code returns a "Parse error : must have at least one entry in
> map".
> Declaring the layers separately doesn't cause the problem. (Beta 6, WinNT4)
Don't work in v3.1g either.
--
Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sun, 21 Oct 2001 23:23:54 +0200, "Gilles Tran" <tra### [at] inapginrafr>
wrote:
> The following code returns a "Parse error : must have at least one entry in map".
> Declaring the layers separately doesn't cause the problem. (Beta 6, WinNT4)
I can extend description of this bug.
it is not connected with parsing of normal_map but rather with parsing
of leyered texture. Why ? Becouse take second line
> #declare i=1;
and move it line by line to top. It always shows parse error within
statememnt opened before this #declare
ABX
after 4 weeks I'm back to play with betas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
news:krk7tt0gjne97pudg0t6hfneif9hps0tf3@4ax.com...
>
> I can extend description of this bug.
> it is not connected with parsing of normal_map but rather with parsing
> of leyered texture. Why ? Becouse take second line
>
> > #declare i=1;
>
> and move it line by line to top. It always shows parse error within
> statememnt opened before this #declare
I know, maybe this has been so since v3.1 and before. Reason I think that
is because I had encountered the inability to use #declare, #while, #if,
etc. within a texture at certain times (layers). You'll get a warning about
the parse seeing a "#" in a layered texture.
I brought it up before here at the newsgroups but I can't find the message
posts about it now.
Bob H.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
<abx### [at] babilonorg> wrote:
> On Sun, 21 Oct 2001 23:23:54 +0200, "Gilles Tran" <tra### [at] inapginrafr>
> wrote:
>
> > The following code returns a "Parse error : must have at least one entry in map".
> > Declaring the layers separately doesn't cause the problem. (Beta 6, WinNT4)
>
> I can extend description of this bug.
> it is not connected with parsing of normal_map but rather with parsing
> of leyered texture.
I can extend description again. It's not connected with parsing of
leyered texture but parsing of declaration of leyered texture. When
the same specification of leyered texture is passed directly to the
plane everithing is ok.
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |