POV-Ray : Newsgroups : povray.beta-test : Still a first function initialisation error? : Re: Still a first function initialisation error? Server Time
30 Jul 2024 00:22:58 EDT (-0400)
  Re: Still a first function initialisation error?  
From:
Date: 6 Feb 2002 08:02:35
Message: <u3a26u882pp7dhm2ivnncrdarh2pa63m9l@4ax.com>
On Wed, 06 Feb 2002 12:54:30 +0000, Michael Andrews <M.C### [at] readingacuk>
wrote:
> As the code stands it fails parsing at the pigment statement with 'Parse 
> Error: Attempt to access an uninitialized array element.'

I can confirm this behaviour, but I think it is somehow connected with arrays.
When you remove array (as below) then it works fine

// -- start ---
#declare f_PT0 = function { abs(sin(x)*sin(y)) }
#declare f_PT1 = function { abs(sin(x)*sin(y)) }

plane { -z, 0
   pigment { function { f_PT0(x,y,z) } } // <- parse _not_ fails
   finish { ambient 1 diffuse 0 }
}

camera {
   location -30*z up y
   right x*image_width/image_height
   direction 2*z look_at 0
}
// -- end --

POV 3.5 b 10 icl on WinNT Sp 6 PII 233 with 128 MB

ABX


Post a reply to this message

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