I’ve just started programming with jMonkey and my aim is to make a Minecraft-like voxel game. To decrease frame lag, I want to do something similar to Minecraft’s chunking. So, I was wondering if there was any way to get a set of spatials (blocks) and export them as a 3D model to be loaded in as chunks. I was hoping this would lower the polygon count and make it easier to render large amounts of blocks. TL;DR - Can you make a set of spatials into a 3D model?
@KingPepe said: I've just started programming with jMonkey and my aim is to make a Minecraft-like voxel game. To decrease frame lag, I want to do something similar to Minecraft's chunking. So, I was wondering if there was any way to get a set of spatials (blocks) and export them as a 3D model to be loaded in as chunks. I was hoping this would lower the polygon count and make it easier to render large amounts of blocks. TL;DR - Can you make a set of spatials into a 3D model?
This is likely not how you want to do this.
Perhaps taking a look at the Cubes plugin will help give you an idea of how to handle this sort of terrain?
EDIT: Sorry. not is referring to saving these chunks in the way you describe.
Ok, I’m very new to this, I’ll take a look at Cubes, thanks!
@KingPepe said: Ok, I'm very new to this, I'll take a look at Cubes, thanks!
Don’t take my word as final! It might very well be a good way of handling this, though I believe the terrain info is probably going to be generated from some form of seeded noise function and the chunks will be cached in order of frequency… eventually pushed out of the stack and just recreated when needed again.
Considering that the mesh is likely going to be smaller than normal terrain tiles/chunks… you’ll most likely use this same sort of approach.
There are quite a few people here who have done this already… maybe they’ll have a bit more helpful info than I on the subject.
Well cubes looks perfect for my game! Only thing is there’s no documentation or wiki as of yet so I can’t use it that extensively. Until the maker fully releases it, does anyone know a good way to handle chunking block data? Thanks again!