POV-Ray : Newsgroups : povray.advanced-users : ridgedMF trouble using Pov3.6 with megapov 1.2 : Re: ridgedMF trouble using Pov3.6 with megapov 1.2 Server Time
28 Jul 2024 12:33:49 EDT (-0400)
  Re: ridgedMF trouble using Pov3.6 with megapov 1.2  
From: Mike Williams
Date: 19 Aug 2005 10:19:52
Message: <rZO55CAAqeBDFwaC@econym.demon.co.uk>
Wasn't it Captain Morgan who wrote:
>I have the following code segment:
>
>#declare f = function {"ridgedMF", <1, 2, 5, 1, 1>}
>#declare sea = function {y - 5 * f(0.2 * x, 0.2 * y, 0.2 * z) / 10 - f(x, y,
>z)/10 - f((x - 0.15)/0.2,(y - 0.15)/0.2, (z - 0.15)/0.2)/100}
>
>the entire image code was originally rendered using an older version of
>POV-Ray and MegaPOV 0.7,
>
>PROBLEM IS...now trying to run this with Povray 3.5 or 3.6 using megapov 1.0
>or 1.2, i ALWAYS get a stupid parse error right here:
>
>#declare f = function {"ridgedMF", < <----ERROR
>
>Parse Error: Expected 'valid function expression', ( found instead
>
>ANYONE ABLE TO HELP please!?!?
>I havent touched povray in a long time and i am very rusty on
>this....obviously im stuck at this point, cause it used to run and now it
>doesnt :(
>
>p.s. deleting the comma after the quotes still gives the same error.


When isosurfaces were introduced into the official version of POVRay the
syntax was changed to make it more flexible. There's a list of the
syntax changes at

<http://www.econym.demon.co.uk/isotut/pov35.htm>

See also the Ridged Multifractal example at

<http://www.econym.demon.co.uk/isotut/builtin5.htm#ridged>

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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