fesoliveira014 / cubeproject

Some voxel stuffs
7 stars 2 forks source link

Chunk Format and Greedy Meshing #3

Closed fesoliveira014 closed 8 years ago

fesoliveira014 commented 8 years ago

Chunks are being instanced as 32x32x32 blocks. Depending on what the engine will be used for, it might be a good idea to change the fixed side size to a glm::ivec3, allowing each side to have a different size. This might be useful since we could create chunks with a y-axis larger than the x-axis and z-axis, eliminating the need for multiple layers of chunks and nasty hacks.

One isso this might bring is at the greedy mesher. The mesher is not designed to take different side sizes, and it needs to be changed. See #2 for other possible modifications to the greedy mesher.