|
|
In article <3ba22523@news.povray.org> , Warp <war### [at] tagpovrayorg> wrote:
>
> What I mean is that if I write something like this:
>
> #declare MyImageFunction = function 256,256 { pattern { ... } }
>
> I get an error at the first '256' (if I remember correctly; I can't confirm
> this right now as I'm not at home).
>
> PS: It might be that it works and that I just typoed somewhere (eg. forgot
> the comma or something), and if this is so, just ignore this... :)
> I'll get home soon and test it again.
Well, you write
#declare MyImageFunction = function { pattern { ... } }
height_field
{
...
function 256, 256 { MyImageFunction(x,y,z) }
}
which is exactly what the syntax description in the docs says.
I don't see why one would declare an image and be surprised that is doesn't
work (as that is what your example tries to do) - it isn't possible at all
with any image map type and never has been...
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|