Train Leaves the City, Crosses a Gorge and in 3D
Three.js WebGL
286 Likes on X

Train Leaves the City, Crosses a Gorge and in 3D

Curated 3D Web Creative Coding project by @KhalidDevLog • 2026-10-07

3D Graphics & Rendering Pipeline

Optimized WebGL 2.0 graphics pipeline with realistic physical light calculations, HDR environment mapping, and anti-aliased geometry rendering.

Physics & Dynamic Simulation

Procedural mathematical vertex displacement, interactive particle animations, and procedural geometry generated at runtime.

Real-time Performance & Polish

60+ FPS browser execution with instanced rendering, memory-managed geometry buffers, and seamless responsive viewport scaling across desktop and mobile devices.

Aesthetic & Creation Overview

A train leaves the city, crosses a gorge and pulls into a farming village.

All of it simulated live in the browser with
@threejs
, WebGL, TypeScript and
@nextjs
, opus 5.5 . Click anything.

Factory Yard is open source:

https://github.com/Khalidabdi1/factory
If you like it, a on GitHub

Technical Tags & Categories

Developer Architecture & AI Prompt Engineering Guide

To study or reproduce this 3D web experience with modern AI coding assistants (Claude Code, Cursor, Codex):

# Recommended AI Prompt Template:

"Create an interactive Three.js 3D web experience based on 'Train Leaves the City, Crosses a Gorge and in 3D'. Implement an antialiased WebGLRenderer with tone mapping, an OrbitControls camera with smooth damping, dynamic lighting with soft shadow mapping, and responsive resize handling. Optimize with InstancedMesh and clean render loops."

  • DevTools Shader & Draw Call Inspection: Press F12 on the demo page to inspect WebGL draw calls, shader programs, and buffer allocations.
  • Open Source Repository Study: Review the GitHub repository for scene graph orchestration, lighting setup, and custom GLSL vertex/fragment shaders.
  • Creator Devlogs: Follow @KhalidDevLog on X for ongoing 3D graphics updates, procedural workflows, and code snippets.

Related 3D Showcases

Explore more interactive Three.js experiments, WebGL shaders, and creative coding