- Marching cubes algorithm is algorithm for polygonizing of scalar field data(like X-ray or MRI).
This example implemented Marching cube algorithm but added process to make triangle mesh output, not triangle soup.
- Ubuntu
- Download VulkanSDK from here
- Extract VulkanSDK you downloaded.
$ tar -zxvf where/vulkan_sdk/located
- Copy header files.
- If you go to extracted directory. You can find x86_64 directory.
move to x86_64 then you can find "include" directory. copy files inside include to system include directory.
$ sudo cp -r vulkan_sdk_location/x86_64/include/* /usr/local/include/
- Setup system environments
- recommed use setup-env.sh file inside your VulkanSDK directory.
or add it on your shell profile.(.zshrc or .bashrc etc...)
source VulkanSDK/setup-env.sh
- Install dependencies
$ sudo apt install libglfw3-dev libglm-dev cmake g++ make
- Clone this example && build
$ git clone https://github.com/elensar92/Vulkan-MarchingCube
$ cd ./Vulkan-MarchingCube
$ git submodule update --init --recursive
$ cmake CMakeLists.txt
$ make
- launch Vulkan_MarhichingCube binary file
$./Vulkan\_MarchingCube
- Mac OS
- Install CommandLine Tools if it is not installed.
$ sudo xcode-select install
- Download VulkanSDK from here
- Recommend using .dmg file
- Install Vulkan SDK using dmg.
- After you installed it. you can find VulkanSDK directory on your Home Directory.
- Install HomeBrew using bellow command
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install dependencies
$ brew install glfw3
$ brew install glm
- Install CMake application for Mac OS from here
- Clone this example && build
$ git clone https://github.com/elensar92/Vulkan-MarchingCube
$ cd Vulkan-MarchingCube
$ cmake CMakeLists.txt
$ make
$ ./Vulkan-MarchingCube
-
OS
- Mac OS(above 11.x versions)
- Linux
- Ubuntu 20.04 lts, 22.04 lts
- Rocky Linux 8.5
- Rasbian Bullseye
- Windows 10
-
Vulkan Version
- Support above 1.1x versions. but recommend using above 1.2.x
-
GLFW3
-
GLM
-
Mingw-w64 (Windows only)


