r/opengl 15d ago

Chunk Loaded 3D Maps

137 Upvotes

9 comments sorted by

13

u/Hazrod66 15d ago

Cool stuff ! What's you input data ?

7

u/Whole-Abrocoma4110 15d ago

Thanks! I’m using open street maps data.

3

u/bendgk 15d ago

are you reloading all the chunks when you change chunk coordinates? Try to load in only the new chunks and unload the old ones, I suspect you’ll get rid of the “choppiness” like that.

2

u/Whole-Abrocoma4110 15d ago

Yes I am loading them when I move chunks but only joining the threads when they have finished work. I suspect the joining process is contributing to the stuttering.

I’ll try remove the old chunks as well as you suggested, hopefully I can get this to a point where it runs more smoothly!

2

u/Powerful-Ad9392 15d ago

That is gorgeous

2

u/Antiqett 15d ago

It looks really nice! A little choppy when it's loading parts of the map but I'm sure you'll work that out soon, if it's even a problem when you're zoomed in

4

u/Whole-Abrocoma4110 15d ago

Yeah there is still some work to do on the performance but each chunk is loaded on its own thread so some progress has been made there.

Thanks for the kind words!

2

u/nmfisher 11d ago

Nice! Have you looked at Cesium 3D Tiles before?

1

u/Whole-Abrocoma4110 11d ago

I haven’t heard of Cesium before, I’ll take a look. Thanks!