All Projects → jstrait → city-tour

jstrait / city-tour

Licence: MIT License
A procedurally generated city built with WebGL and three.js

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to city-tour

Indoor3d
a js lib based on three.js to show 3D indoor map
Stars: ✭ 425 (+645.61%)
Mutual labels:  threejs, canvas
Earthjs
D3 Earth JS
Stars: ✭ 128 (+124.56%)
Mutual labels:  threejs, canvas
Snapchat Clone
👻 A SnapChat clone built with React, Redux and Typescript. Styled with SASS. Tested with Cypress, Jest and Enzyme. Linted with Eslint and formatted with Prettier!
Stars: ✭ 770 (+1250.88%)
Mutual labels:  threejs, canvas
React Particles Webgl
🔆 A 2D/3D particle library built on React, Three.js and WebGL
Stars: ✭ 330 (+478.95%)
Mutual labels:  threejs, canvas
Terrain Builder
🏔 Procedural terrain using Three.js and perlin noise, Now Accelerated by your GPU!
Stars: ✭ 228 (+300%)
Mutual labels:  threejs, procedural-generation
Troika
A JavaScript framework for interactive 3D and 2D visualizations
Stars: ✭ 342 (+500%)
Mutual labels:  threejs, canvas
Canvas Webgl Study
this is a canvas study project
Stars: ✭ 117 (+105.26%)
Mutual labels:  threejs, canvas
Three.terrain
A procedural terrain generation engine for use with the Three.js 3D graphics library for the web.
Stars: ✭ 353 (+519.3%)
Mutual labels:  threejs, procedural-generation
Demos
One repo to rule them all.
Stars: ✭ 204 (+257.89%)
Mutual labels:  threejs, canvas
Wechart
Create all the [ch]arts by cax or three.js - Cax 和 three.js 创造一切图[表]
Stars: ✭ 152 (+166.67%)
Mutual labels:  threejs, canvas
Icon Machine
Web application for randomly generating pixel art icons.
Stars: ✭ 73 (+28.07%)
Mutual labels:  canvas, procedural-generation
zeo
Multiplayer WebVR worlds made out of npm modules.
Stars: ✭ 47 (-17.54%)
Mutual labels:  threejs, procedural-generation
Fe Daily Record
📚前端书籍汇集点 + 每日好文推荐 + 公开课学习资料 + 各种大会资料
Stars: ✭ 94 (+64.91%)
Mutual labels:  threejs, canvas
R3f Next Starter
Repo is moving to https://github.com/pmndrs/react-three-next
Stars: ✭ 137 (+140.35%)
Mutual labels:  threejs, canvas
MetalCity
MetalCity - a procedural night city landscape generator
Stars: ✭ 29 (-49.12%)
Mutual labels:  procedural-generation, city
Procedural-Generation
An Overview of Procedural Generation Techniques and Applications
Stars: ✭ 23 (-59.65%)
Mutual labels:  threejs, procedural-generation
macroverse
An entire universe on the Ethereum blockchain
Stars: ✭ 31 (-45.61%)
Mutual labels:  procedural-generation
sport-stats
Sport stats UI components
Stars: ✭ 62 (+8.77%)
Mutual labels:  threejs
NOC3D-chapter6
Nature of Code - Autonomous Agents examples in 3D
Stars: ✭ 69 (+21.05%)
Mutual labels:  threejs
differential-growth
adrianton3.github.io/differential-growth/
Stars: ✭ 27 (-52.63%)
Mutual labels:  procedural-generation

City Tour

Visit a procedurally generated city, different each time. Sit back and enjoy the ride!

https://www.joelstrait.com/citytour/

Made using three.js and WebGL.

How It Works

First, blueprints of the world are generated:

  • A terrain map
  • A road network that follows the terrain
  • Empty building lots along roads
  • Buildings in the lots

The results are different each time due to random variation, but follow configurable rules.

Next, this abstract definition is turned into a 3D model that can be rendered with WebGL, with the help of three.js.

Once this is all created, you can move around the city using touch gestures (mobile) or the mouse (desktop). Navigation works similar to Google/Apple Maps. You can also click the "Take a Tour" button to go on an automatic flight/drive through the city.

Building / Running Locally

  • If first time building, run yarn install
  • Run yarn build-dev, which will build the app in the dist/ folder
  • Open dist/city_tour.html in your browser (make sure running a local server such as MAMP)
  • To automatically rebuild when source files change, run yarn build-dev --watch instead

Building for Production

  • Run yarn build-prod
  • dist/ folder will contain the files that should be deployed to production

Running Tests

  • yarn test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].