POV-Ray : Newsgroups : povray.general : Height_field help : Re: Height_field help Server Time
19 Apr 2024 04:24:17 EDT (-0400)
  Re: Height_field help  
From: Leroy
Date: 5 Mar 2023 15:20:00
Message: <web.6404f9483575e8097917166bf712fc00@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> "Leroy" <whe### [at] gmailcom> wrote:
> >
> > #macro Image(File)
> >  #local L=strlen(File);
> >  (etc) ...
>
> > How to use:
> >
> > #declare FileStr="Image.tga"
> >
> > height_field{Image(Filestr} ... // ending parenthesis missing?
> >
>
> [Windows 10, running v3.8.0 beta 1]
> I like the idea. But substituting my own .png image_map...
>
> #declare FileStr="test image for hf png.png"
> height_field{Image(Filestr)} // parenthesis added
>
> ...I get a fatal error at the last line: "Cannot pass uninitialized identifier as
> non-optional macro parameter."

Sorry about the typo.I copied the example from working code & delete one space
to much.

I hope your problem is the another typo
  height_field{Image(Filestr)}  FileStr

Have Fun!


Post a reply to this message

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