Skip to content

guotata1996/Unity-Voxel-ECS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity ECS-Style Voxelization

Installation

Parameters overview

The following are adjustable parameters in VoxelizationSystem.

  • voxelSize Voxelization resolution. Small value leads to higher memory use.
  • minDuration A lower bound of duration. Used for small-scale voxelization to delay the spawning process.
  • maxMovingNumber Maximum allowed number of simultaneously moving voxels. Smaller value leads to longer duration and better frame rate.
  • modelName The name of model to be loaded in Resources/ folder.
  • bottomColor & topColor The color of bottom and top of voxelized model. The rest will be interpolated.
  • volumetric Whether to perform volumetric voxelization (expansive).
  • randomOrder Whether to randomize spawn order.

Demo

Model Size (Bounding box): 11.7 * 20.7 * 3.8

Surface voxelization

  • Resolution: 0.1
  • Resulting voxels count: 38k
  • Time: < 1sec (with Core i7-8850H)

Voxel

Volumetric voxelization with random initial position

  • Resolution: 0.1
  • Resulting voxels count: 140k
  • Time: ~ 1sec (with Core i7-8850H)

Voxel

About

ECS Style high-performance Voxelization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages