Skip to content

SeanBritsDev/Unity-Marching-Cubes-Planet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Marching-Cubes-Planet

This is a Unity Project, where I use the marching cubes algorithm to generate a sphere.

Just add the marching cubes script to a game object. Make sure to add a mesh renderer and mesh filter.

The script will use the table script to generate the corect triangles. There will be some smoothing to make the sphere look a little better. You can also use a max deptth and height to implement noise on the planet's surface.

Normal Sphere Screenshot 2024-05-05 154903

X-Ray of Sphere Screenshot 2024-05-05 154954

I have included a mesh generation scrip whice you can attach to a game object to generate a 2D mesh of sorts. I then play with the heights to make an interesting terain. Screenshot (19)

About

This is a Unity Project, where I use the marching cubes algorithm to generate a planet sphere with mountains and valleys.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages