Skip to content

keijiro/ComputeMarchingCubes

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 15, 2021 14:28
June 10, 2021 23:00
June 10, 2021 23:00
June 15, 2021 11:49
June 15, 2021 11:53

ComputeMarchingCubes

gif gif

ComputeMarchingCubes is a Unity sample project that reconstructs isosurfaces of scalar volume data using a compute shader and the new mesh API graphics buffer direct access).

It uses the classic marching cubes algorithm for isosurface reconstruction. The implementation is based on Paul Bourke's article but partially modified for GPU optimization.

System requirements

  • Unity 2021.2.0 a19 or later
  • Compute shader capable system

What's inside

This project contains two sample scenes:

Note that the configuration of the volume data is hardcoded in the sample script/shader. You have to implement a data parser to support a specific volume data format.

About

[Unity] GPU-optimized marching cubes isosurface reconstruction

Resources

License

Stars

Watchers

Forks

Languages