So I'm trying to wrap my head around how exactly I could go about making an infinite like type world that is generated on the fly using PolyVox, quite the undertaking but I have no doubts I can achieve such a feat.
I have a few questions and would love the communities input on the matter
First I'll lay out my thought process on the topic.
I have a volume say 1024x1024x256
Each mesh extracted is in 16x16x16 chunks
The surrounding 27 chunks are displayed, moving from 1 chunk to another would unload the ones behind you and load the ones in front of you. (the player does not see this as it is out of their view)
This is currently working but now I need to expand past the 1024x1024x256 region.
Route 1, I was thinking every time the player moved from 1 chunk to another it would essentially shift the voxels and everything would stay within the 1024x1024x256 region. However this sounds like a lot of looping and unnecessary processing.
Route 2, I was thinking of would be to have a smaller region, say, 512x512x256, we'll call this a sector to keep things simple, and have the sector the player is in plus the surrounding 26 sectors in memory at any given time, loading/unloading them as they are needed when the player moves from 1 sector to another like the chunk system. This seems more feasible but I've read in a few places you should only ever use 1 volume. I hope I'm wrong or there is an easier way to go about this.
I hope I explained my though process well enough, how do you think I should approach this?