Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

NiseVoid/bevy_voxels_archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived voxels crate for bevy

A voxel crate for smooth voxel terrain using SDFs and the fast_surface_nets crate.

The architecture

Voxel data gets stores as chunks, the chunks get some very simple compression with Run-Length Encoding. Each chunk is stored as an entity, and a ChunkMap resource is used to look up the entity for a given ChunkPosition.

Modifications to the chunk data can be batched and works by adding or subtracting signed distance functions to the voxel grid, on sdfs these operations can be as simple as a min or max operation. More specifically a smooth min and smooth max function are used which take a smoothing factor in the range 0 < factor <= 1.

License

Except where noted (below and/or in individual files), all code in this repository is dual-licensed under either:

at your option.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages