POV-Ray : Newsgroups : povray.binaries.images : city building generator WIP : Re: city building generator WIP Server Time
5 May 2024 13:43:43 EDT (-0400)
  Re: city building generator WIP  
From: Kenneth
Date: 23 Jul 2017 15:25:01
Message: <web.5974f724164bd7b0883fb31c0@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

>
> The bigger *main* problem I'm currently running into is that 'patterned
> textures' cannot have additional overlayed textures applied to them...

By the way: Because of this limitation, each building is actually TWO boxes,
scaled differently (by .0001 in certain dimensions) and *very slightly*
overlapped-- one box to show the front-back faces, the other for the left-right
faces. In other words, I couldn't use just ONE box with multiple textures like
this...

object{building_box
       texture{..front-and-back..}
       texture{..left-and-right..)
       ...
      }

.... because those would be 'overlayed textures'-- and are not allowed.

But it wasn't a big deal to do-- and rather fun to code ;-) You can't see the
tiny overlaps unless you look REALLY closely at the buildings' edges (I hope!)

POV-ray can also apply uv-mapping to a box-- but I didn't consider doing that,
because of the crazy/complex nature of my tiled-image code, my 'boxed' pattern
and image_pattern use, etc. etc. Maybe when my brain power increases by at least
a factor of 2, I'll give that a try :-P


Post a reply to this message

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