A Random City Generator.
As I mentioned in this thread, http://www.zbrushcentral.com/zbc/showthread.php?t=32297, this was a ZScript that I’d been working on for a while now. This doesn’t work in the demo version of ZBrush, as of yet.
I think I have it so it finally does something worthwhile.
With this script you can generate a city using buildings that were saved to a file, (Building01.ztl, Building02.ztl, Building03.ztl, and so on, up to Building07.ztl). If you want to use your own custom buildings, make sure to use the same filenames as that is what the ZScript is looking for.
Also, you can generate a futurstic style city as well as a no-frills low-polygon count city made up only of scaled cubes.
Here are a few samples of what it can do:
Futurstic City:
[attach=25876]City.JPG[/attach]
A City Built From File Objects:
A No-Frills Low-Poly City
[attach=25878]City3.JPG[/attach]
When making your own custom buildings make sure the base of the building is sitting on the origin, like so:
[attach=25879]BuildingBase.JPG[/attach]
Also, make sure the top of the building is facing toward the negative Z axis, (toward you, in terms of ZBrush coordinates), like this:
[attach=25880]BuildingTop.JPG[/attach]
The widest area of any buildings should also be the same size as shown here:
[attach=25881]BuildingSize.JPG[/attach]
All of this is just so any custom made-buildings don’t intersect with each other in the final model.
I also ssigned groups to different sections, so if alignment is off, you can hide the other groups and tweak size and offset amounts in the deformation pallette. I had to jump through some hoops since ZBrush only allows 255 markers at any one time and it doesn’t allow markers on top of one another, so I had to deal with some trial and error in setting up the final polymeshes, so some alignment will probably be necessary.
[attach=25882]BuildingAlign.JPG[/attach]
Just unzip everything into your ZScript directory and load it from the ZScripts menu. Any ideas/suggestions are welcome.
I hope somebody finds this useful, because I exhausted myself working on this. I’ll try to do something more relaxing next.