P0-MS5: Part 314: City Simulator
by PhoenixGames on Jan.28, 2018, under Astral Realms, P-0, Software and Games, Spiritus Astrum
I discovered an issue with the City Simulator, which I believe I have mostly fixed.
When cities were being generated far from the origin, I was getting graphical problems with the roads and sidewalks, most likely due to the 32-bit precision issues. I was able to fix this by moving the city generator to the origin, building the city, and then moving it back to it’s final location.
This seems to work, but I am concerned that it may be possible to see the city floating in space in the short time that it is being generated, in certain situations. I can’t hide it, because then the raycasts to find the terrain height won’t work. I will probably need to find a more elegant solution to this at some point in the future, but it seems to work quite well for now.