![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] gmx de
"Pyrolistical" <Pyr### [at] hotmail com> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <web.3d823625f5aaaf1896ad091d0@news.povray.org>,
"Pyrolistical" <Pyr### [at] hotmail com> 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] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Ahh, ok, thanks for clearing that up for me guys.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |