Scrawk/Mesh-Voxelization
소개
Mesh voxelization in Unity
게임 및 에뮬레이션측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMesh-Voxelization
This project converts a mesh into voxels in Unity. The idea is to ray trace the mesh and find where each ray intersects a triangle. These positions can then be used to make a 3D array of voxels.
The ray tracing is accelerated by using a AABB tree to group the mesh triangles. The AABB tree should be much faster for large meshes but the overhead might not be worth it for smaller meshes.
The original code for the AABB tree can be found in the core section of this collection of code from Miles Macklins blog.
For the demo scene the voxels are converted back into a mesh by adding quads at the edge of each voxel.
The mesh before voxelization.
The mesh after voxelization.
관련 프로젝트 살펴보기
불러오는 중…