Unity Voxel

Mesh voxelization for Unity.
Alternatives To Unity Voxel
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Draco5,53813203 days ago23July 07, 202292apache-2.0C++
Draco is a library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.
Unity Script Collection4,448
2 months ago2gpl-3.0
A maintained collection of useful & free unity scripts / library's / plugins and extensions
Deform2,803
25 days ago18mitC#
A fully-featured deformer system for Unity.
Awesome Unity Open Source On Github2,575
3 days ago7unlicense
A categorized collection of awesome Unity open source on GitHub (800+)
Nerf_pl1,641
5 months ago45mitJupyter Notebook
NeRF (Neural Radiance Fields) and NeRF in the Wild using pytorch-lightning
Temporal1,559
6 years ago7mitC#
Temporal Reprojection Anti-Aliasing for Unity 5.0+
Geometry3sharp1,441253 months ago7March 07, 2019108bsl-1.0C#
C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
Meshsync1,337
3 days ago15otherC++
A package for synchronizing meshes/models editing in DCC tools into Unity in real time.
Unitymeshsimplifier1,100
8 months ago8mitC#
Mesh simplification for Unity.
Navmeshplus1,039
5 days ago8mitC#
Unity NavMesh 2D Pathfinding
Alternatives To Unity Voxel
Select To Compare


Alternative Project Comparisons
Readme

unity-voxel

Voxelize mesh algorithm in Unity. (includes GPU and CPU voxelizers.)

Demo

GPUVoxelParticleSystem

GPUVoxelParticleSystem

the Demo for GPU Particle with geometry shader. (only tested on windows10 (GTX 1060))

Inspired by Keijiro Takahashi works⚡️ StandardGeometryShader & KvantSpray

GPUVoxelMosaic

GPUVoxelMosaicLevels

GPUVoxelMosaic

the Demo to update the resolution of voxels in realtime. (only tested on windows10 (GTX 1060))

GPUVoxelSkinnedMesh

GPUVoxelSkinnedMesh

Sample a mesh from SkinnedRenderer in every frame and voxelize it in realtime.

the human model and animation from asset store.

Usage

with GPU Voxelizer (recommended)

GPUVoxelData data = GPUVoxelizer.Voxelize(
    voxelizer,  // ComputeShader (Voxelizer.compute)
    mesh,       // a target mesh
    64,         // # of voxels for largest AABB bounds
    true        // flag to fill in volume or not; if set flag to false, sample a surface only
);

// build voxel cubes integrated mesh
GetComponent<MeshFilter>().sharedMesh = VoxelMesh.Build(data.GetData(), data.UnitLength, useUV);

// build 3D texture represent a volume by voxels.
RenderTexture volumeTexture = GPUVoxelizer.BuildTexture3D(
  voxelizer,
  data,
  texture,    // Texture2D to color voxels based on uv coordinates in voxels
  RenderTextureFormat.ARGBFloat,
  FilterMode.Bilinear
);

// need to release a voxel buffer
data.Dispose();

with CPU Voxelizer

// Voxelize target mesh with CPU Voxelizer

List<Voxel> voxels = CPUVoxelizer.Voxelize(
    mesh,   // a target mesh
    20      // # of voxels for largest AABB bounds
);

Compatibility

Tested on Unity 2018.3.0f2, windows10 (GTX 1060), macOS (metal, not compatible with GPU Particle Demo).

Sources

Popular Unity Projects
Popular Mesh Projects
Popular Games Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Sharp
Unity
Real Time
Gpu
Mesh
Particles
Voxel