Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build and Deploy a 3D City Simulator with Three.js
New

Build and Deploy a 3D City Simulator with Three.js

Build a production-style 3D city in Three.js, persist compact models, add i18n, and deploy with Vite and Netlify.
Created byJongIn Han
Last updated 10/2026
Korean

What you'll learn

  • Organize a production-style Three.js application into focused managers and domain objects.
  • Load, inspect, and use GLB and glTF assets in an interactive browser scene.
  • Implement cameras, mouse input, raycasting, object selection, and scene interaction.
  • Model city blocks, roads, zones, buildings, residents, power infrastructure, and vehicles.
  • Build a lightweight reusable internationalization module with vanilla JavaScript.
  • Create floating toolbars, status messages, toast notifications, and modal workflows.
  • Save and reopen compact compressed city metadata without serializing the full scene graph.
  • Export the scene as a raster image when a flat deliverable is required.
  • Configure production builds with Vite and CSS processing with Gulp.
  • Manage a private Git project and deploy the client with Netlify.
  • Define a safe browser-to-server boundary using Node.js or NestJS, CORS, Swagger, and a sample API.
  • Refactor and optimize a larger JavaScript and CSS project using verifiable increments.

Course content

7 sections • 32 lectures • 2h 0m total length
  • Course Overview3:12

    Preview the completed CityWow simulator and learn how the course connects visible features to maintainable Three.js modules and verifiable implementation steps.

  • Learning Goals and Deliverables3:14

    Define the finished deliverables: a modular browser client, compact city persistence, a reproducible production build, deployment, and a safe server boundary.

  • Prerequisites and Initial Setup3:34

    Prepare Node.js, an editor, Git, a modern browser, and optional Blender tools. Download the three attached archives: the course reference pack, the completed application, and the stage-by-stage source snapshots. Start with the staged code while following the lessons and use the final source as a comparison target.

    - `citywow-course-materials-en.zip`: English curriculum, scripts, shot lists, lesson plan, and reference documents.

    - `citywow-final-source-en.zip`: completed English Three.js client, build configuration, assets, and optional server example.

    - `citywow-staged-code-en.zip`: English-named source snapshots for following and comparing the major implementation stages.

Requirements

  • Working knowledge of JavaScript fundamentals, ES modules, classes, and the DOM.
  • Basic familiarity with Three.js is helpful; determined JavaScript learners can follow the completed-application-first approach.
  • Basic command-line and npm experience.
  • A current Node.js LTS release, VS Code or a similar editor, Git, and a modern desktop browser.
  • Blender is used for model inspection; previous Blender experience is not required.
  • A Git hosting account and a Netlify account are needed only for the deployment section.
  • Use a private repository for the supplied course source and do not publish the original training materials as a public repository.

Description

This course contains the use of artificial intelligence. The English narration was produced with a licensed text-to-speech voice from instructor-authored and instructor-reviewed course material.

Move beyond spinning boxes and spheres. In this project-based course, you will examine, build, save, and deploy CityWow: an interactive browser-based 3D city simulator designed around practical application architecture rather than isolated Three.js syntax demonstrations.

We begin with the finished application so you can see where every later decision leads. You will connect visible controls to the modules that own them, then work through a modular codebase with separate responsibilities for the user interface, scene, camera, model loading, city blocks, roads, power, buildings, residents, and vehicles. This reverse-engineering approach helps you understand how a larger Three.js application fits together before you change it.

The city itself is more than a static model. You will work with roads, power plants and lines, residential and commercial zones, infrastructure buildings, residents, and vehicles moving through a generated road network. You will also inspect GLB and glTF assets, implement mouse and camera interaction, provide building and object information, and export a raster image when a flat result is useful.

Persistence is treated as an application design problem. Instead of serializing an entire Three.js scene graph, you will save compact, compressed city metadata, reopen it, continue editing, and save it again. You will also build reusable browser interface features: a lightweight standards-based internationalization module, floating toolbars, status messages, toast notifications, confirmation dialogs, and file open/save flows.

The final sections take the project beyond local development. You will create a production build with Vite and Gulp, manage the source with Git, deploy the browser client through Netlify, and understand automatic redeployment. You will then review where Node.js and NestJS services belong in an on-premises architecture, including CORS, Swagger, and a small API boundary that keeps server concerns and secrets out of the browser.

The course includes 32 concise English lessons, matching English captions, staged source snapshots, and a complete final project. Every major topic ends with a visible application check or production-build result. The goal is to give JavaScript developers a realistic foundation they can adapt to digital twins, planning tools, manufacturing views, transportation systems, disaster-response visualization, defense, public infrastructure, and other interactive 3D services.

This is not a complete introduction to JavaScript or a catalog of every Three.js API. It is a guided study of a finished application and the engineering decisions that make it maintainable, extensible, and deployable.

Who this course is for:

  • JavaScript developers ready to move beyond small Three.js demonstrations.
  • Front-end developers building 3D dashboards, planning tools, simulations, or digital-twin interfaces.
  • Three.js learners who want practical save/open, internationalization, UI, build, and deployment patterns.
  • Developers who need a clear example of coordinating many interacting 3D domain objects.
  • Engineers exploring interactive visualization for manufacturing, transportation, public infrastructure, disaster response, or related fields.
  • Learners who prefer studying and modifying a complete application with staged source code.