POV-Ray : Newsgroups : povray.beta-test : functions : functions Server Time
5 Nov 2024 05:22:12 EST (-0500)
  functions  
From: sacrofts
Date: 6 Sep 2001 16:29:15
Message: <3b97dc9b$1@news.povray.org>
The following code was fine in megapov but generates this message in 
3.5:
    function {( ((y-5.5)+PFWaves(x+10,y,z)* <----ERROR
    Parse Error: Expected '.', * found instead

Have I missed something about the way functions work in 3.5?
Celeron 400Mhz, 192Mb, 3.5beta1, Win98

Steve

--code--------------------
#declare PFWaves =
   function {
      pigment {waves scale 10 
         color_map {
            [0 rgb 1.5] 
            [1 rgb 0]
           }
        }
     }
     
#declare PFRipples =
   function {
      pigment {ripples scale <2,4,2> rotate y*35 turbulence 0.5 octaves 
1 lambda 0.2
         ramp_wave
               color_map {
                  [0 rgb 5]
                  [0.025 rgb 0.51*5]
                  [0.05 rgb 0.26*5]
                  [0.1 rgb 0.1*5]
                  [1 rgb 0]
                 }
             }
         }

#declare ISOF_Water =
   function {( ((y-5.5)+PFWaves(x+10,y,z)*2) +PFRipples(x*1/2,y,z*1/2)) 
+noise3d(x,y,z)/3}


Post a reply to this message

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