POV-Ray : Newsgroups : povray.advanced-users : ridgedMF trouble using Pov3.6 with megapov 1.2 Server Time
24 Nov 2024 19:50:26 EST (-0500)
  ridgedMF trouble using Pov3.6 with megapov 1.2 (Message 1 to 4 of 4)  
From: Captain Morgan
Subject: ridgedMF trouble using Pov3.6 with megapov 1.2
Date: 19 Aug 2005 10:05:01
Message: <web.4305e681632772b115b9d80a0@news.povray.org>
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.


Post a reply to this message

From: nomail
Subject: Re: ridgedMF trouble using Pov3.6 with megapov 1.2
Date: 19 Aug 2005 10:15:01
Message: <web.4305e902b948bc2bbb95c26a0@news.povray.org>
"Captain Morgan" <nomail@nomail> 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,

This syntax was only valid in the ancient isosurface patch and MegaPOV up to
0.7. MegaPOV isn't an official POV-Ray, nor is the isosurface patch.

> 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!?!?

RTFM, please!?!?


Post a reply to this message

From: Slime
Subject: Re: ridgedMF trouble using Pov3.6 with megapov 1.2
Date: 19 Aug 2005 10:16:16
Message: <4305e9b0@news.povray.org>
> #declare f = function {"ridgedMF", <1, 2, 5, 1, 1>}

Shouldn't that be ridgedMF(1,2,5,1,1) ? Or is this some sort of MegaPOV
syntax? (And if it is, wouldn't it just be easier to detect
function{ridgedMF(1,2,5,1,1)} and handle it however this is handled?)

I also think it might be f_ridged_mf or something along those lines.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Mike Williams
Subject: Re: ridgedMF trouble using Pov3.6 with megapov 1.2
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.