POV-Ray : Newsgroups : povray.binaries.images : Random city : Re: Random city Server Time
7 Aug 2024 01:18:40 EDT (-0400)
  Re: Random city  
From: Anton Sherwood
Date: 4 Jul 2006 20:14:44
Message: <44ab0474$1@news.povray.org>
Here in San Francisco, even the tallest buildings rarely take up a whole 
city block.  One way to make this less regular would be: start with each 
block as one LOT, and then

    for each LOT
       if (size of LOT > minimum) and (random() < PDIV)
          randomly choose a point P within the LOT
          find the line L along which P is nearest to a boundary
          divide the LOT into two LOTs along L; recurse
       else
          build

Whatever your function is for building height, the shortest dimension of 
the LOT should be another factor.

-- 
Anton Sherwood, http://www.ogre.nu/
"How'd ya like to climb this high *without* no mountain?" --Porky Pine


Post a reply to this message

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