PGD Home

P0-MS5: Part 314: City Simulator

by 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.

Unity 24/01/2018 , 03:04:33 AM Unity 2017.2.0f3 Personal (64bit) - P0Main35.unity - P0-MS4 - PC, Mac & Linux Standalone

Unity
24/01/2018 , 03:04:33 AM
Unity 2017.2.0f3 Personal (64bit) – P0Main35.unity – P0-MS4 – PC, Mac & Linux Standalone

Unity 24/01/2018 , 04:07:20 AM Unity 2017.2.0f3 Personal (64bit) - P0Main35.unity - P0-MS4 - PC, Mac & Linux Standalone*

Unity
24/01/2018 , 04:07:20 AM
Unity 2017.2.0f3 Personal (64bit) – P0Main35.unity – P0-MS4 – PC, Mac & Linux Standalone*

Unity 24/01/2018 , 04:28:11 AM Unity 2017.2.0f3 Personal (64bit) - P0Main35.unity - P0-MS4 - PC, Mac & Linux Standalone

Unity
24/01/2018 , 04:28:11 AM
Unity 2017.2.0f3 Personal (64bit) – P0Main35.unity – P0-MS4 – PC, Mac & Linux Standalone

Unity 24/01/2018 , 07:00:46 PM Unity 2017.2.0f3 Personal (64bit) - P0Main35.unity - P0-MS4 - PC, Mac & Linux Standalone

Unity
24/01/2018 , 07:00:46 PM
Unity 2017.2.0f3 Personal (64bit) – P0Main35.unity – P0-MS4 – PC, Mac & Linux Standalone

Screenshot (303) Screenshot (302)

Unity 25/01/2018 , 08:44:01 PM Unity 2017.2.0f3 Personal (64bit) - P0Main35.unity - P0-MS4 - PC, Mac & Linux Standalone

Unity
25/01/2018 , 08:44:01 PM
Unity 2017.2.0f3 Personal (64bit) – P0Main35.unity – P0-MS4 – PC, Mac & Linux Standalone

Screenshot (301)

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!