POV-Ray : Newsgroups : povray.binaries.images : city building generator WIP : Re: city building generator WIP Server Time
5 May 2024 05:43:51 EDT (-0400)
  Re: city building generator WIP  
From: Alain
Date: 23 Jul 2017 17:40:49
Message: <597517e1@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
> 
> 
> 

Why don't you try the cubic pattern?
It allow you to give distinct textures to each faces of a cubic shaped 
object. As your buildings are not cubes, you'll need to scale that 
pattern to fit.


Post a reply to this message

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