Giter Site home page Giter Site logo

lscoder / gpu-marching-cubes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smistad/gpu-marching-cubes

0.0 3.0 0.0 53 KB

A GPU implementation of the Marching Cubes algorithm for extracting surfaces from volumes using OpenCL and OpenGL

Home Page: http://www.eriksmistad.no/marching-cubes-implementation-using-opencl-and-opengl/

License: Other

CMake 2.55% C 66.29% C++ 31.16%

gpu-marching-cubes's Introduction

About

A GPU implementation of the Marching Cubes algorithm for extracting surfaces from volumes using OpenCL and OpenGL. See http://www.eriksmistad.no/marching-cubes-implementation-using-opencl-and-opengl/ for detailed information about this implementation.

Note that this software has been moved into the FAST framework where it is further developed and maintained.

Dependencies

OpenGL, GLUT, GLU, GLEW and OpenCL (with C++ bindings)

Notes about implementation

  • Example 3D RAW files can be downloaded from www.volvis.org
  • Currently only supports 8 bit raw files, but should be easily extended to other types
  • Due to the lack of 3D texture write support on NVIDIA GPUs a slower version is used on NVIDIA GPUs. This version uses regular buffers and morton codes to emulate 3D caching. (not optimal, but at least it works)
  • See LICENCE file for license information
  • If you clone the project, remember to run git submodule init and git submodule update to fetch the contents of the OpenCLUtilities submodule

Compiling

Use the attached CMakeLists.txt to compile the program: cmake CMakeLists.txt

Usage

Run the program with the following arguments:

filename.raw sizeX sizeY sizeZ [stepSizeX stepSizeY stepSizeZ] [spacingX spacingY spacingZ]

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.