As the title says. One of my projects over the past few weeks has been to work on a procedural city. Initially it is a port of Pixel City Google Code Archive - Long-term storage for Google Code Project Hosting. by Shamus Young (I believe)
Pixel city was basically a simple 3d city generation for learning. He provided all of the code that made it work, so others could learn as well.
My goal is to not just recreate Pixel city, but to learn and adapt it into a full procedural generator. I will attempt to keep this thread up to date and add photos and such to it so that people can see progress. The overall goal is to produce something for the Asset Store, both for people to use in their games and for profit.
Things done:
Initial texture Generator (to match PixelCity)
4 core building models presented in PixelCity
Rooftop grid Generation
Things to do (this list of course will grow):
Put things on the rooftop according to the grid
Square Street Generator (similar to PixelCity)
Angular Street Generator with intersections
Align Street to a generic height map.
Non rectangular building Generator
Initial High res Generator
So my first goals were simple, learn how he did it,learn how to make it in Unity. So far I am working pretty well on that. There are a few things I need to work on this area though. Work with mip maps so they don’t fade out so bad when farther away. Things of this nature.
As I move forward though, I am doing things that are of course not in the original code. The buildings where I create a roof specifically on, I have adapted a grid for placement of objects. So now I can put objects by placement on top of the grid. Pent houses, air conditioners and the like. I still have as yet to make more complex roofs. I also would like to implement the building names as was done in the original.
Currently, it creates 10 textures and colors them. Later, I will simply add vertex lighting. Also, things to come are the daytime versions of this.
I may release this in waves on the Asset store to simplify things. If you don’t requre a massive high res building creator, you shouldn’t have to pay for one.