Skip to content

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulkan-MarchingCube


What is Marching Cube?

  • 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.

Pipeline

pipeline

Installation

  • Ubuntu
  1. Download VulkanSDK from here
  2. Extract VulkanSDK you downloaded.
$ tar -zxvf where/vulkan_sdk/located
  1. 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/
  1. 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
  1. Install dependencies
$ sudo apt install libglfw3-dev libglm-dev cmake g++ make
  1. Clone this example && build
$ git clone https://github.com/elensar92/Vulkan-MarchingCube
$ cd ./Vulkan-MarchingCube
$ git submodule update --init --recursive
$ cmake CMakeLists.txt
$ make
  1. launch Vulkan_MarhichingCube binary file
$./Vulkan\_MarchingCube
  • Mac OS
  1. Install CommandLine Tools if it is not installed.
$ sudo xcode-select install
  1. Download VulkanSDK from here
  • Recommend using .dmg file
  1. Install Vulkan SDK using dmg.
  • After you installed it. you can find VulkanSDK directory on your Home Directory.
  1. Install HomeBrew using bellow command
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install dependencies
$ brew install glfw3
$ brew install glm
  1. Install CMake application for Mac OS from here
  2. Clone this example && build
$ git clone https://github.com/elensar92/Vulkan-MarchingCube
$ cd Vulkan-MarchingCube
$ cmake CMakeLists.txt
$ make
$ ./Vulkan-MarchingCube

Result

mc_128_128_64_front mc_128_128_64_side

Dependencies

  1. OS

    • Mac OS(above 11.x versions)
    • Linux
      • Ubuntu 20.04 lts, 22.04 lts
      • Rocky Linux 8.5
      • Rasbian Bullseye
    • Windows 10
  2. Vulkan Version

    • Support above 1.1x versions. but recommend using above 1.2.x
  3. GLFW3

  4. GLM

  5. Mingw-w64 (Windows only)

About

Vulkan MarchingCubes

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages