POV-Ray : Newsgroups : povray.general : Height_field help : Re: Height_field help Server Time
2 May 2024 11:49:51 EDT (-0400)
  Re: Height_field help  
From: Kenneth
Date: 7 Mar 2023 16:35:00
Message: <web.6407acda3575e8099b4924336e066e29@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
>
> > But about the original macro here: I still cannot get it to run...
>
> The secrete here is the error line
>
>  Cannot pass unitialized identifier as macro ''parameter''...
>
> The only macro parameter we have here is 'Filestr' ie.. Image(Filestr) FileStr
> is what you declare earlier. Notice the capital S. 'Filestr' doesn't exists.
> That's the only problem I see.
>
Aha! I didn't even notice that mis-matched capital S; I was looking for a deeper
and more obscure problem, ha. It runs fine now. Thanks.

But take a look at your posted code at the beginning of the thread:

>
> How to use:
>
> #declare FileStr="Image.tga"
>
> height_field{Image(Filestr} ...

Oops! ;-)


Post a reply to this message

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