Question about structure

Hi there guys

Please allow me to ask 2 basic questions:

  1. let’s say I make a very long fence. Is it better to make one segment of the fence (in 3ds max) and then copy it over and over whereever I want to use it, or should it be one long mesh. I’m asking specificly related to performance…
  2. Also, I’m trying to build my own version of a GTA style online game. Now, what would be the best for me to save the player’s progress, in an xml file?

Thanks in advance

You should aim to make things like fences, walls, roads and pretty much everything you can as modular building blocks (prefabs) that can be snapped together on the grid, so that you can re-use them. You can combine them into fewer draw calls if you want, but having them split into unique and reusable objects is much better for level building and occlusion culling.

I’d worry about the networking and be sure you know exactly what data structures you’re going to need to save before working on the save code, but XML should be fine. Try to write the saving/loading code so that it can be altered later (for example, to save to a sqlite database or a binary file) in case you change your mind, without impacting the actual saving code too much. A lot of this depends on if you mean saving the data locally or to a central server.

thanks xomg

I think for now this game will be more for the person playing on his/her own workstation, so the data will be saved locally.