Hi, I like to work on own games, but with own engines. Or better I like to create those engines for games :D I am working on Xcode, with C++ and OpenGL. My question is, How can I efficiently store the data of a hole open world with all objects, persons and so on in it.
I mean, I could imagine that the world is split in certain areas, and you load only near by areas. But if every map has also a few hundred objects on it, with maybe buildings, cities, ... that would be a hole buch of loading, than when I image it is a flat area, so I could actually see pretty far, than I must have really big areas with a lot more objects on it, than maybe AI that is calculated the hole time for those areas.
And than second thing, let's say I am able to change the world, like in Minecraft, remove certain parts of the world and add it some where else. I must save and load this again to that area. Is there a nice and good way to load, save and store such worlds, for an open world.
I would just write everything to an textfile. And store each area in a Textfile. When loading an area, I would create an 2D array, store all informations in that, build out of that array an Vertexbuffer, load it on to the GPU and render the hole area. But that don't seem to be good.