Skip to content

Zombie1111/UnityMarchingCubes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Marching Cubes

Overview

Burst and job compatible implementation of Marching Cubes

Key Features

  • Multithreaded (Burst and Job)
  • Smooth normals
  • Create a marched object from any mesh
  • Collision (Mesh collider baked in job or many primitive shapes)
  • Detects loose chunks and splits them into seperate objects with rigidbody

Instructions

Requirements (Should work in other versions and pipelines)

  • Unity 2023.2.20f1 (Built-in)
  • Burst 1.8.13
  • Collections 2.1.4
  • Mathematics 1.2.6

General Setup

  1. Download and copy the Demo and Scripts folders into an empty folder inside your Assets directory
  2. Add MeshGenObject.cs script to any empty Gameobject and assign a mesh (preferable watertight) to the StartShape field
  3. See Demo/meshGenDemo scene for example

License

MIT - See the LICENSE file for more details.

About

Burst and job compatible implementation of Marching Cubes for Unity

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages