POV-Ray : Newsgroups : povray.binaries.images : city buildings-- WIP 9_29_2020 : Re: city buildings-- WIP 9_29_2020 Server Time
20 May 2024 12:45:53 EDT (-0400)
  Re: city buildings-- WIP 9_29_2020  
From: Kenneth
Date: 4 Oct 2020 22:50:00
Message: <web.5f7a895432341a55d98418910@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

> The main trouble is with the  texture{image_pattern{  syntax.
>
> In its general form for 'masking' use...
>
> texture{
>   image_pattern{
>       png "my_holdout_mask_image_1.png" interpolate 2 // the mask
>       texture_map{TEX_MAP_FOOBAR} // or just texture{...}, the texture to mask
>         }
>        }
[snip]

Sorry, I posted somewhat wrong syntax in that example (the placement of the
curly brackets). I was hastily writing 'on the fly' :-O  It should be:
texture{
  image_pattern{
      png "my_holdout_mask_image_1.png" interpolate 2 // the mask
               }
      texture_map{TEX_MAP_FOOBAR} // or just texture{...}, the texture to mask
       }

.... which makes the following idea partially wrong:

[snip]
> SO, I *could* make 34 complete image_patterns, stick
> them into an array-- which hopefully will accept them and greatly reduce the
> subsequent memory load-- then call *those* in the repeating
> texture{image_pattern{...  later.
>
> [WRONG:] Those 34 image_patterns will necessarily need their '2nd part'
> included as well, the texture to be masked, TEX_MAP_FOOBAR.

Nope, the '2nd part' is not enclosed in the image_pattern{...}.

Well, the whole idea will not work anyway (or *maybe* it would in an array?)--
an image_pattern{...} block cannot be #declared. Same error as before, "not an
RValue." I guess it's the same behavior as trying to #declare a bare
image_map{...}, which likewise doesn't work.


Post a reply to this message

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