POV-Ray : Newsgroups : povray.beta-test : #while in normal statements in layered textures : #while in normal statements in layered textures Server Time
2 Nov 2024 17:21:36 EDT (-0400)
  #while in normal statements in layered textures  
From: Gilles Tran
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

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