scallyw4g / bonsai

A voxel engine in a pot
Do What The F*ck You Want To Public License
230 stars 13 forks source link

world_chunk needs to be able to store both 8 and 32-bit models #71

Closed scallyw4g closed 2 months ago

scallyw4g commented 2 months ago

In some cases we want to use world chunks for things other than actual world chunk data because their a convenient storage format. For example, saving out a new asset from a selection does this. Also, the brush previews. Maybe more places I'm forgetting right now.

The problem with this is that right now they're hard-coded to use the compressed 8-bit type, but that means models and brush previews cannot be more than 256 voxels large in any one dimension, or they overflow.

Should be pretty easy to add a d_union for this kinda thing.

scallyw4g commented 2 months ago

done in v1.6.0