• Stars
    star
    116
  • Rank 302,550 (Top 6 %)
  • Language ShaderLab
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unity demo that uses a few tricks to build random nice-looking 3D cities

Procedural City

Procedural City is a demo that uses a few tricks to build random nice-looking 3D cities.

Screenshot


Idea

First, neighborhood blocks are randomly placed in an irregular rectangle grid.

Irregular Grid

Then, building allotments are packed inside blocks using this bin packing algorithm. Bin packing uses a heuristic that tries to maximize edge contact for "bins". This leads to better fitting of allotments along block edges. Once blocks are filled, non-edge allotments are discarded.

Bin Packing

Buildings are extruded from allotments and their façades decorated by two pattern matrices. Pattern matrices are picked from one of six achitectural styles (art deco, art noveau, brownstone, chicago old school, international and modernist). One pattern matrix implements simple block extrusion/exclusion to be performed in the façade geometry. Another determines which element (e.g., window, door, column) should be appended where in the façade. Details (e.g., headers, rails, firestairs) are randomly selected according to the defined achitectural style. Finally, some common props (e.g., chimney, water tank) are scattered around the rooftops.

Building Generation

Download

Windows

More Repositories

1

LSystemsInUnity

L-Systems in Unity
C#
93
star
2

roadgen

Road network generation tool for Unity
C#
90
star
3

pyobb

OBB implementation in python (using numpy)
Python
81
star
4

PCSS

GLSL implementation of the Percentage-Closer Soft Shadows technique
C++
73
star
5

OperatorGraph

shape grammar base system and auto-tuner based on the operator graph idea
C++
27
star
6

cook_torrance

GLSL implementation of the Cook-Torrance shader model
C++
16
star
7

uunit

a simple xUnit style framework for running unit tests inside Unity
C#
6
star
8

SAT.js

Javascript implementation of the Separating Axis Theorem for convex polygons and polyhedra
JavaScript
4
star
9

FastCG

an application framework for rapid prototyping of 3D applications
C++
3
star
10

ShapeGrammars.js

shape grammars for browsers
JavaScript
2
star
11

VoxelEngine

a simple voxel engine for Unity
C#
2
star
12

CGAParser

C#
2
star
13

vulkan_studies

C++
1
star
14

text2jira

Python
1
star
15

linux_device_drivers_studies

C
1
star
16

ImageProcessing.js

image processing algorithms for the browsers
JavaScript
1
star
17

pboechat.github.io

personal website
JavaScript
1
star
18

x86_64_assembly_studies

Assembly
1
star
19

crypto_list

easily protect key-value pairs with a master password
Python
1
star
20

ShapeGrammarsInUnity

1
star
21

simpleraytracer

simple Whitted-style raytracer implementation in C++
C
1
star
22

coding_questions

C++
1
star
23

xithcluster

xithcluster is a distributed rendering extension to Xith3D
Java
1
star
24

neural_networks_studies

Python
1
star
25

yarl

Yet Another Rogue-Like
Batchfile
1
star
26

roadnetworkgenerator

roadnetworkgenerator
C
1
star
27

pycompgeo

computational geometry algorithms
Python
1
star
28

game_job_search_tools

Python 3 script for scraping the web in search of jobs in the game industry
Python
1
star
29

selenium_chatango_bot

Python
1
star
30

triangulate

C++
1
star
31

AuberNoise

C#
1
star