#anyone an idea on how to create a chunk system?

34 messages · Page 1 of 1 (latest)

thin light
#

Like voxel chunks or map chunks?

Either way you'd need some way to serialize each chunk (just moving it into ServerStorage if it's not persistent across servers is fine probably)

Voxels would be voxel data you'd load into an EditableMesh, regular map would just require to split it up into chunks in a way that you can manipulate everything within that chunk (model for every section?)

gaunt tartan
#

With no bulk set or get methods

gaunt tartan
#

just... chunk?

#

like

#

is the map fixed size

#

if yes initialize the chunks at the start

#

then load/unload relative to player pos

tacit basalt
#

the map will have a limit

gaunt tartan
#

but not fixed size

#

got it

tacit basalt
#

and

gaunt tartan
#

then you just init the chunks on the go

#

have a render distance around the player

tacit basalt
#

it should be possible to save them

#

if the player leaves

upper shellBOT
#

studio** You are now Level 9! **studio

gaunt tartan
#

and using deterministic generation

#

u regen the rest using a seed

tacit basalt
#

oh hell nah

gaunt tartan
#

thats how i do it

#

works wonders

tacit basalt
#

thank you

#

can i add you?

gaunt tartan
#

urs is 2d so u wont have to worry about optimization

#

like at all

#

why

tacit basalt
#

@gaunt tartan

#

i didnt understand this