afonsolage / projekto

Voxel game made with Bevy Engine
MIT License
59 stars 4 forks source link

Rework Voxel Rendering #52

Closed afonsolage closed 2 years ago

afonsolage commented 2 years ago

After playing with height clipping on #50, it is clear now that some voxel meshing techniques used won't fit the game design. The game should have a top-view but also allow to enter inside buildings, caves and such, without revealing what isn't on visible range.

This could be done by simple doing an flood-fill to check player visibility and hide any voxel that is above all those voxels, but to hide the above voxels, no faces merging can be done. This lead a performance problem, where each voxel will have it's own face.

I can see some alternatives to explore here: