Back to Works

Procedural Terrain & Ocean

Where complex algorithms converge into interactive landscapes

The Technical Concept

This project is a high-performance technical study on Procedural Content Generation (PCG). Instead of manual modeling, it leverages pure mathematical algorithms to synthesize complex natural geometries in real-time. It's an exploration of how code can mimic the organic patterns of our world.

Core Algorithms

Fast Fourier Transform (FFT)

Used for synthesizing dynamic ocean waves by calculating sum of sines in the frequency domain.

Diamond-Square Algorithm

A fractal-based method used to generate realistic, rugged terrain elevation maps with stochastic noise.

Project Highlights

  • Parametric Control: Real-time adjustment of frequency, amplitude, and persistence via GUI.
  • Optimized Mesh: Efficient vertex displacement techniques to ensure 60FPS performance in-browser.
  • Dynamic Shading: Custom shaders to visualize heightmaps and wave steepness.