bfops / playform

Voxel sandbox project in Rust
http://playformdev.blogspot.ca/
MIT License
212 stars 24 forks source link

Voxel LOD simplification #128

Open bfops opened 9 years ago

bfops commented 9 years ago

We need to be able to generate lower-LOD voxels from higher-LOD ones. It doesn't matter when we're generating the voxels from a field, but it does matter once users can start "manually" tweaking voxels.

It might also be worth thinking about going from high to low LODs, so that faraway data can be generated at low LODs, and only be made more detailed once it's necessary. That's less important though.

bfops commented 9 years ago

This should definitely be blocked on https://github.com/bfops/playform/issues/127

bfops commented 9 years ago

I think a sane first attempt would be to make the inner vertex for the larger voxel by averaging the vertices from the sub-voxels. Figuring out which corners are still contained is pretty trivial.