POV-Ray : Newsgroups : povray.beta-test : #while in normal statements in layered textures Server Time
2 Nov 2024 15:26:36 EDT (-0400)
  #while in normal statements in layered textures (Message 1 to 5 of 5)  
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

From: Ken
Subject: Re: #while in normal statements in layered textures
Date: 21 Oct 2001 17:34:49
Message: <3BD3410C.6236C9D6@pacbell.net>
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

From:
Subject: Re: #while in normal statements in layered textures
Date: 22 Oct 2001 04:12:29
Message: <krk7tt0gjne97pudg0t6hfneif9hps0tf3@4ax.com>
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

From: Bob H 
Subject: Re: #while in normal statements in layered textures
Date: 22 Oct 2001 10:40:25
Message: <3bd42fd9$1@news.povray.org>

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

From:
Subject: Re: #while in normal statements in layered textures
Date: 24 Oct 2001 08:37:49
Message: <m9ddtt8go23p77646t04k622mua9old405@4ax.com>

<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

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