Giter Site home page Giter Site logo

godot_marching_cubes's Introduction

Iguana skull mesh in viewport

Marching Cubes Viewer for Godot

This project provides an addon for Godot that lets you turn 3D volumetric data into meshesusing the marching cubes algorithm. It uses GLSL compute shaders to keep things fast, so you must run this on a computer that supports GPU computation and a Godot mode that supports GPU shaders (that is, not Compatability mode).

Installation

Download the archive and copy everything in the /godot/addons/marching_cubes_viewer directory into a directory with the same name in your project. Then go into Project Settings/Plugins and enable the Marching Cubes Viewer plugin.

Plugin manager window

Usage

You can create a new viewer object by clicking the + button in the top right of the Scene window and selecting a MarchingCubesViewerGlsl from the node list in the Create New Node window:

Creating a new node

Once you've created a node, there are several parameters you can adjust:

Creating a new node

  • Image File - a zip file with a stack of images representing the different planes of your 3D volume

  • Threshold - This determines the cutoff of the field. Basically all voxles in your volume that are greater than this value are considered to be 'inside' and all the other voxels are 'outside'. The mesh is then constructed that separates the inside from the outside. Creating a new node

  • Cube Resolution - How dense to make this mesh. This is rounded to the nearest mipmap level of your source volume.

Creating a new node

Support

If you found this software useful, please consider buying me a coffee on Kofi. Every contribution helps me to make more software:

ko-fi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.