fesoliveira014 / cubeproject

Some voxel stuffs
7 stars 2 forks source link

Greedy Meshing Face Culling #2

Closed fesoliveira014 closed 8 years ago

fesoliveira014 commented 8 years ago

The greedy mesher is not design to deal with neighbors in its current state. It leads to extra face constructions that are unecessary and slows the meshing process.

The implementation should check if there are voxels on neighbor chunks adjacent to that face. If there is, mark the voxel as air, and go to the next.

fesoliveira014 commented 8 years ago

Made some advancements on this, but found bug where north/south faces are being created in a weird way. They look to be shifted somehow by 1, and the merging is not working because of that. East/west and top/bottom are good.