Posts

Showing posts with the label FFT

Water RND #1

Image
Water surfaces are an essential part of game projects. The approaches to implementing them are constantly evolving, where visual quality and performance are still in conflict. I’d like to share a bit about my experiments and thoughts on this topic. Trochoidal wave The shape of a trochoid is the key to understanding the mechanics of a water surface. A trochoidal wave is a model of a surface water wave where the water particles move in nearly circular or elliptical paths, creating waves that have rounded troughs and sharper crests. It’s a more realistic representation of ocean waves compared to a simple sine wave. In simple terms: The wave shape is smoother and more natural-looking, with sharper peaks and flatter bottoms. Water particles don’t travel far; instead, they move in looping paths — mostly in place. This kind of wave better represents how waves behave on the ocean surface under light to moderate wind conditions. Prebaked spectral waves  My prebaked solution uses spectr...