Skip to content

kevinleguillou/displacement-cities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e2fde25 · Jan 10, 2021

History

12 Commits
Jan 10, 2021
Jan 10, 2021
Jan 10, 2021
Dec 4, 2020
Jan 10, 2021
Jan 10, 2021
Jan 10, 2021
Jan 10, 2021
Jan 10, 2021

Repository files navigation

A cityscape generated using the Displacement Cities project

Test here ! 🌆

Displacement Cities

Generating a cityscape from a 2D noise pattern.

Inspired by /u/ckinggfx on /r/Blender.

Generating the city mesh by interpreting a noise pattern as a heightmap

We create simple plane with subdivisions higher or equal to the noise pattern width in pixels.

Apply a patchwork texture of city buildings

The main issue here is to correctly project the texture on the displaced geometry, since the regular UVs would just stretch the texture. We define a specific projection in the fragment shader that assumes a side projection.

About

Generating a cityscape from a 2D noise pattern.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published