POV-Ray : Newsgroups : povray.binaries.images : city buildings as height_fields-- WIP 1 : Re: city buildings as height_fields-- WIP 1 Server Time
7 May 2024 12:00:48 EDT (-0400)
  Re: city buildings as height_fields-- WIP 1  
From: Bill Pragnell
Date: 28 Feb 2018 14:50:01
Message: <web.5a9706c7e5be66e21b6c6b3a0@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> That looks like it would work OK code-wise... very similar/identical to
>
> #macro HO_1()
> "building windows 1C.jpg"
> #end
>
> then
> image_pattern{jpeg HO_1}
>
> or...
> #macro HO_1()
> jpeg "building windows 1C.jpg"
> #end
>
> then
> image_pattern{HO_1}
>
> Both of those work, too.

Yep, except that predeclaring the texture block into an array element avoids
reading the image file every time it's used, which was what you wanted to avoid.


Post a reply to this message

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