POV-Ray : Newsgroups : povray.beta-test : Confused about "waves" : Re: Confused about "waves" Server Time
5 Nov 2024 01:26:26 EST (-0500)
  Re: Confused about "waves"  
From: Thorsten Froehlich
Date: 14 Sep 2001 12:02:40
Message: <3ba22a20@news.povray.org>
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

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