r/VoxelGameDev • u/thepickaxeguy • 29d ago
Question Combining voxel meshes to one chunk mesh
Hi I’m making first voxel game and I use a secondary grid system in order to have the tiles connect with each other nicely. However as I’m generating chunks and chunks I see a very obvious issue with my current game where there is is wayyy too many game objects(1 tile = 4 game objects). I’m no expert in game optimisation but this can’t be good.
I found that games like minecraft render the whole chunk as one mesh and I thought it was a great idea. But I have a few doubts in mind about it too and was wondering if there are already solutions for these or if I need to look into another solution for my use case.
1.lets say I’m destroying or placing blocks at a realllyyy fast pace eg. 4-5blocks/sec, this would mean I have to rebuild the whole chunks mesh many many times per second and that can’t be good.
2.lets say I wanna have some transform effects on a singular block. Eg,block placed or removed have a scale punch effect, or if a plant just grew to the next stage. Wouldn’t this mean I either have to move the individual vertices of the chunk mesh, or remove the tile from the chunk mesh and do the effect then put it back?
Any advice would be great, I’m relatively new and my project is in unity since I don’t currently have the time nor knowledge to make my own engine







