I wrote this script a while ago and made it available through creativeCrash.com but I thought that it would be also nice to put it here.
This is a little tool to simplify the creation of a background city. It’s initial idea is based on the very handy 3ds max plugin ‘Greeble’ but more aiming towards building a city. It’s far from being perfect but has helped in various situations. I still want to implement some texturing features and a better variety of buildings but that has to wait a little more.
New Version: icQTown 2.0
1. create a poly plane with not too many divisions (more faces mean longer process time; more complex scenes can be build from separate elements) – as a good start create a poly plane with 8×8 divisions and a side length of 50.
2. scale the plane to a desired size and freeze the transformations
3. select the polygons that the script should work on; leave out any polygons that should remain untouched (i.e. streets)
4. run the script and enjoy!
Just copy the script to any script directory that is accessed via maya. Run the script by executing “icQTown” (without quotes) in the script editor. You may as well build a shelf button with the supplied icon (which should go to the icons directory in the maya preferences folder).
The script currently only works properly with planar faces, for putting the detail geometry on top of the buildings. If this feature is checked off the script can also be run on curved geometry.
– Dropout %: Defines, how high the chance is that a polygon is not converted into a building, leaving open spaces in the city
– Height Range: The min and max height of the buildings
– Min Scale: The minimum amount the original faces get scaled inwards. The closer this value is to 1 the closer the buildings will be
– Planar Surface: Turn this option off to build a city in a hill like poly surface
– Curved Surface: This enables the script to build upon a sphere or cylindrical surface. This option turns off the wells and details unfortunately. Still have to figure out how to query the normal direction of upside down faces to build the details correctly
– Colorize: Gives the buildings some quasi-random colors. This can help the process of mapping and applying materials. Not totally awsome yet but a start towards an automatic mapping function.
Please note: WITH THIS OPTION ENABLED IT IS COMMON THAT UNDOING THE TOOL WILL NOT WORK CORRECTLY, SO BE SURE TO SAFE PRIOR TO EXECUTING! UNDOING AND RERUNNING THE SCRIPT CAN EVENTUALLY CAUSE MAYA TO CRASH!
– Stairs: Builds stair-stepped buildings with a given maximum amount of steps
– Stacks: Builds a little ledge for every floor on some buildings
– Wells: Creates a varying number of vertical columns for some buildings
– Well Occurrence: Defines how often the wells will be build
– Shrink: Scales the top of some buildings for some inclination
– Roof Cube: Builds a cube on top of some buildings by random with the given size range. The maximum range should not exceed 1
– Top Detail: Creates different kinds of geometry on top of the buildings by random. The detail height is depended on the scene scale and expressed in system units. The detail complexity defines the max amount of detail to be build
– Antenna: Puts an antenna on top of some buildings