POV-Ray : Newsgroups : povray.beta-test : What's with this parse error? Server Time
1 Nov 2024 15:28:14 EDT (-0400)
  What's with this parse error? (Message 1 to 2 of 2)  
From: David Wallace
Subject: What's with this parse error?
Date: 24 Apr 2002 15:08:22
Message: <3cc702a6@news.povray.org>
Beta-RC2, Duron 800Mhz, 512MB DDR, Win98SE
--- code ---
#declare fpnLand = function { pigment {
 crackle form <1, -1, 1>
 turbulence 0.3
 pigment_map {
  [ 0.10 pigLand0 ]
  [ 0.30 pigLand1 ]
  [ 0.50 pigLand2 ]
  [ 0.70 pigLand3 ]
  [ 0.90 pigLand4 ]
 }
}

#declare Land = isosurface {
 function { y-exp(fpnLand(x*.01, 0, z*.01).gray)+1 } // error here
 contained_by { box { <-1e4, 0, -1e4>, <1e4, 155, 1e4> } }
 max_gradient 15
 texture { txtLand }
}
--- code ---
I get an "Invalid number of parameters; 3 supplied, 8 required" error.

I thought that pigment functions took 3 floats ( a vector ).


Post a reply to this message

From: Ari-Matti Leppanen
Subject: Re: What's with this parse error?
Date: 24 Apr 2002 15:18:43
Message: <3cc70513$1@news.povray.org>
"David Wallace" <dar### [at] earthlinknet> wrote in message
news:3cc702a6@news.povray.org...

You're missing one closing bracket.

Ari-Matti


Post a reply to this message

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