Posts Tagged ‘signed distance field’

Ray Marching Signed Distance Fields

January 19, 2013

This is my first attempt in real-time rendering of a procedurally generated terrain:

raymarching

The terrain is generated from 3D Perlin Noise. It is converted to a signed distance field using Danielsson’s distance transform and stored in a 3D texture of size 256x256x256 on the GPU. The scene is rendered directly from the distance field, applying third-order texture filtering to improve the quality.

You can download the demo (Windows, x64) here. The source code is in my github repository.

Advertisements