https://github.com/csmct99/voxelengine
Another Generic Unity Voxel Engine. But this one is mine :)
https://github.com/csmct99/voxelengine
unity unity3d voxel
Last synced: 2 months ago
JSON representation
Another Generic Unity Voxel Engine. But this one is mine :)
- Host: GitHub
- URL: https://github.com/csmct99/voxelengine
- Owner: csmct99
- Created: 2025-02-27T17:37:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-08T07:11:59.000Z (over 1 year ago)
- Last Synced: 2025-03-08T08:21:08.738Z (over 1 year ago)
- Topics: unity, unity3d, voxel
- Language: C#
- Homepage:
- Size: 1.38 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generic Voxel Engine
I wanted to try my hand at a optimized voxel engine in Unity.
Both because I want to use it for my own projects and also as a good learning project.
I consider this project a standalone package though currently its not perfectly segmented like this.
If you want, feel free to make any pull requests though as of right now this is a solo project.

# TODO
- [X] Naive implementation
- [X] Face culling
- [X] Greedy meshing
- [ ] Multi-threaded greedy meshing
- Im hugely bound by the mesh generation process so multi threaded the main algo had no impact. Will revisit later
- [X] Proper chunking of data
- [ ] Optional Automatic LODing
- [X] Simple per-face binary greedy meshing
- [X] Add support for .vox files (MagicaVoxel)
- [ ] Optimized binary greedy meshing
- [ ] Lighten the mesh data weight
- [X] Record performance metrics
- [ ] Put performance metrics on github
- [ ] First pass of terrain shader
# Technical Details
Unity: Unity 6 (6000.0.X)
Render Pipeline: Built-in Render Pipeline
Backend: IL2CPP
Target: All major desktops should work \[Windows, Mac(Intel, Silicon), Linux\]
I am using Odin Inspector for the editor tools UI and Hot Reload for faster iteration times.
Both of these are paid assets in Unity, I have not included them in the repo for this reason.
You will need to either cut out the odin code yourself (its not that bad) or buy the asset and install it on your side.
Maybe one day Ill add preprocessor directives to do this automagically but that makes the code pretty icky.