Skip to content

A simple DirectX 11 demo showing the Marching Cubes algorithm

License

Notifications You must be signed in to change notification settings

Yordrar/marching-cubes-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marching-cubes-demo

This is a simple demo showcasing the Marching Cubes algorithm.

It is a really neat algorithm for procedurally generating meshes, specially terrain. I plan to eventually make a simple terrain editor based on this algorithm generating the mesh via a compute shader.

The GUI was made with the Dear ImGui library, and it allows you to change the grid resolution and cube size, as well as toggling interpolation and changing the mesh color.

I learned the algorithm from the following resources:

Polygonising a scalar field: Article by Paul Bourke.

Coding Adventure: Marching Cubes: Video by Sebastian Lague.

Images

sea

mountain

valley

About

A simple DirectX 11 demo showing the Marching Cubes algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published