I've Built an Opensource Real-time, Photorealistic Ocean that in 3D
Curated 3D Web Creative Coding project by @chirovisuals • 2026-06-26
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
Interactive real-time physics engine integration featuring collision detection, rigid body kinematics, and smooth motion damping.
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
I've built an opensource real-time, photorealistic ocean that runs in your browser. using
@threejs
+ WebGL2.
• FFT (Tessendorf) + Gerstner hybrid waves
• GGX water, caustics, foam & a PBR sand floor & etc...
Source code :
https://github.com/achrefelouafi/OceanThreejs
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 'I've Built an Opensource Real-time, Photorealistic Ocean that 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 @chirovisuals 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
Finally, Completed the @threejs Port of Evan Wallace’s
Finally, completed the @threejs port of Evan Wallace’s WebGL Water demo! It includes real-time heightfield water simulation, raytraced reflections/refractions, caustics, buoyancy, interactive objects, GLTF model support, configurable pool shapes including rounded boxes, and a
Ported Evan Wallace's WebGL Water
Ported Evan Wallace's WebGL Water to @threejs , and this allows me to easily play the caustics with different 3D objects, e.g., a tofu. Next I'm going to add different shapes and a 3D duck :) Anyhow, Three.js handles the scene management, GPU resources, and standard rendering
Astra Built Me a Pirate Cove in One HTML File
Astra built me a pirate cove in one HTML file Three.js + WebGL, procedural 3D models, shader-driven waves, and transparent cutaway water. A sailing ship, a shark, cannon fire, and music synthesized with Web Audio All running right in your browser
OptiJuegos: DirectX 9 to WebGPU Graphics Port
Ranked as the top technical showcase of the week, OptiJuegos presents an experimental port of native DirectX 9 graphics pipelines over to WebGPU, exploring legacy shader translation, draw call batching, and high-performance browser execution.