POV-Ray : Newsgroups : povray.general : Declaring pattern Functions Server Time
6 Nov 2024 10:25:11 EST (-0500)
  Declaring pattern Functions (Message 1 to 4 of 4)  
From: Pyrolistical
Subject: Declaring pattern Functions
Date: 13 Sep 2002 15:05:05
Message: <web.3d823625f5aaaf1896ad091d0@news.povray.org>
Hey ppl, I've been having problems declaring pattern functions.  I don't
think it is possible...

Here's what I want to do:

#declare FOO = function 300,300 { pattern { agate} }

height_field {
  FOO(x,y,z)
}

It errors saying that it expects something other than a constant at the
first 300.

Any ideas ppl?


Post a reply to this message

From: Tim Nikias
Subject: Re: Declaring pattern Functions
Date: 13 Sep 2002 15:39:49
Message: <3d823f05$1@news.povray.org>
Here's what POV wants:

#declare HF = function{ pigment{A_Pigment}}
#declare HF_Detail=300;

 height_field{
  function HF_Detail,HF_Detail{HF(x,y,z).x}
 blabla
}


--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde
"Pyrolistical" <Pyr### [at] hotmailcom> schrieb im Newsbeitrag
news:web.3d823625f5aaaf1896ad091d0@news.povray.org...
> Hey ppl, I've been having problems declaring pattern functions.  I don't
> think it is possible...
>
> Here's what I want to do:
>
> #declare FOO = function 300,300 { pattern { agate} }
>
> height_field {
>   FOO(x,y,z)
> }
>
> It errors saying that it expects something other than a constant at the
> first 300.
>
> Any ideas ppl?
>
>
>


Post a reply to this message

From: Christopher James Huff
Subject: Re: Declaring pattern Functions
Date: 13 Sep 2002 16:21:56
Message: <chrishuff-3F2E42.16211413092002@netplex.aussie.org>
In article <web.3d823625f5aaaf1896ad091d0@news.povray.org>,
 "Pyrolistical" <Pyr### [at] hotmailcom> wrote:

> Hey ppl, I've been having problems declaring pattern functions.  I don't
> think it is possible...
> 
> Here's what I want to do:
> 
> #declare FOO = function 300,300 { pattern { agate} }

That's because you are using the function *image* syntax instead of a 
function. Only use the resolution when you are defining an image. You 
can't declare an image, so this fails.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Pyrolistical
Subject: Re: Declaring pattern Functions
Date: 13 Sep 2002 18:50:03
Message: <web.3d826b7a40ce910ad7069c340@news.povray.org>
Ahh, ok, thanks for clearing that up for me guys.


Post a reply to this message

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