Avokadoen / zig_vulkan

Toying with vulkan and zig
45 stars 2 forks source link

compress voxel colors #89

Closed Avokadoen closed 2 years ago

Avokadoen commented 2 years ago

problem

There are 8 * 512 bits with material indices per chunk. This adds up

solution ideas

buckets:

Use buckets to organize voxel indices A buck is a type that defined a index range We add N amount of 8, 16, 32 .., 512 buckets. The distribution should be based on what's most normal and need s to be configurable.

hash map

Use a hash map to store voxels material index

Avokadoen commented 2 years ago

Buckets are implement in 491fbd9