POV-Ray : Newsgroups : povray.general : function f_ridged_mf question Server Time
19 Nov 2024 18:18:39 EST (-0500)
  function f_ridged_mf question (Message 1 to 4 of 4)  
From: Patrick Dugan
Subject: function f_ridged_mf question
Date: 13 Feb 2002 23:00:35
Message: <3c6b3663@news.povray.org>
I am trying to translate a Megpov statement:

   #declare f = function{"ridgedmf" <1, 2, 5, 1, 1>}

to a Povray 3.5 statement:

   #declare f = function {f_ridged_mf (1,2,5,1,1) }

Povray says "expected operator ( found instead."

Can anyone tell me how to properly translate the function in Povray 3.5?
I'm a match klutz so I'm having trouble with this.


Thank you,
Patrick Dugan


Post a reply to this message

From: Christopher James Huff
Subject: Re: function f_ridged_mf question
Date: 13 Feb 2002 23:19:03
Message: <chrishuff-98A5C6.23184713022002@netplex.aussie.org>
In article <3c6b3663@news.povray.org>,
 "Patrick Dugan" <pat### [at] netinsnet> wrote:

> Povray says "expected operator ( found instead."
> 
> Can anyone tell me how to properly translate the function in Povray 3.5?
> I'm a match klutz so I'm having trouble with this.

Did you include "functions.inc"?

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From:
Subject: Re: function f_ridged_mf question
Date: 14 Feb 2002 04:05:07
Message: <0eum6u8a59t73mbse7f629inlqc3qqde04@4ax.com>
On Wed, 13 Feb 2002 22:00:11 -0600, "Patrick Dugan" <pat### [at] netinsnet>
wrote:
> I am trying to translate a Megpov statement:
> #declare f = function{"ridgedmf" <1, 2, 5, 1, 1>}
> to a Povray 3.5 statement:
> #declare f = function {f_ridged_mf (1,2,5,1,1) }
> Povray says "expected operator ( found instead."

1. Add "functions.inc" at begining of your script
2. f_ridged_mf function require nine parameters
  // Parameters: x, y, z
  // Six extra parameters required:                          
  // 1. H 
  // 2. Lacunarity 
  // 3. octaves
  // 4. offset 
  // 5. Gain 
  // 6. noise
  while in megapov
  // P0 'H'
  // P1 'Lacunarity'
  // P2 'Octaves'
  // P3 'Offset'
  // P4 'Gain'

Additional parameter in 3.5 "noise" is number of noise generator (integer
value in range 0..3).

Note1: type name of function and use context help on its name - you can read
explanation within documentation.

Note2: if you want fast proper typing of function with correct parameters then
use my Insert Menu Bonus Pack (it contains previews) - available at:
http://www.abx.art.pl/pov/bonus/pack.php

ABX


Post a reply to this message

From: Patrick Dugan
Subject: Re: function f_ridged_mf question
Date: 14 Feb 2002 21:39:13
Message: <3c6c74d1@news.povray.org>
Nope!  That was a MAJOR goof on my part!

Thanks!

"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3c6b3663@news.povray.org>,
>  "Patrick Dugan" <pat### [at] netinsnet> wrote:
>
> > Povray says "expected operator ( found instead."
> >
> > Can anyone tell me how to properly translate the function in Povray 3.5?
> > I'm a match klutz so I'm having trouble with this.
>
> Did you include "functions.inc"?
>
> --
> Christopher James Huff <chr### [at] maccom>
> POV-Ray TAG e-mail: chr### [at] tagpovrayorg
> TAG web site: http://tag.povray.org/


Post a reply to this message

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