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
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
25 Loading Buttons, Open-source Animated Motion Collection 13 in 3D
25 loading buttons, open-source animated motion collection 13 webgl, svg/canvas/css, responsive, replayable, zero dependencies http://loader-buttons.appllama.io comment "LOADER" and i'll send you the npm + react native package
Open-Source WebGPU Physically-Based Path Tracer
My WebGPU path tracer is open source! Physically based rendering, running right in your browser. MIT licensed. - WebGPU compute shader path tracing, with WebGL 2 fallback - Two-level BVH built using parallel Web Workers, based on TinyBVH. A 4.6M-triangle scene's BVH builds in
The Insanely Green Swamp in Three.js - Ported From WebGL to WebGPU
The insanely green Swamp in threejs - ported from Webgl to Webgpu opus 5.5 did most of the work of porting.. GPT 6 Astra did the original work..
Delroy715 - Open-source Photorealistic 3D Water Simulation Generated with Claude Opus 5.5
Delroy715 highlights an open-source viral sensation: a photorealistic 3D water shader simulation synthesized in a single prompt with Claude Opus 5.5. Originally gated behind paywalls, the full WebGL and Three.js implementation is now freely available for the creative community to fork, study, and remix, featuring realistic Gerstner waves, caustics, and Fresnel refractions.