{"id":5045,"date":"2017-04-09T16:41:09","date_gmt":"2017-04-09T15:41:09","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=5045"},"modified":"2017-04-09T16:52:12","modified_gmt":"2017-04-09T15:52:12","slug":"p0-p-172-part-147-infinite-universe","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-p-172-part-147-infinite-universe\/","title":{"rendered":"P0-MS2: Part 147: City Generator Buildings"},"content":{"rendered":"<p>I have finally gotten around to replacing the placeholder art in\u00a0the city generator with real buildings. These are from a free asset called &#8220;<a href=\"https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/76766\">White City<\/a>&#8221; which is available on the asset store.<\/p>\n<p>There is a lot of work to be done in properly placing these buildings. Currently, there is very little code in place to align the buildings properly to the terrain, and prevent collision between one building and another. I also need to find some way of flattening the ground where the city is to be located, but this may not be possible.<\/p>\n<p>I am not hugely concerned with individual placement of buildings at this point, my main intention was to procedurally place cities on the surface of the planet, and have them load and unload depending on player distance, and this system works extremely well.<\/p>\n<figure id=\"attachment_5021\" aria-describedby=\"caption-attachment-5021\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_05_54-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5021\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_05_54-PM-300x163.jpg\" alt=\"Unity 03\/04\/2017 , 11:05:54 PM Unity 5.5.1f1 Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_05_54-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_05_54-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_05_54-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_05_54-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-5021\" class=\"wp-caption-text\">Unity<br \/>03\/04\/2017 , 11:05:54 PM<br \/>Unity 5.5.1f1 Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_5022\" aria-describedby=\"caption-attachment-5022\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_10_19-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5022\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_10_19-PM-300x163.jpg\" alt=\"Unity 03\/04\/2017 , 11:10:19 PM Unity 5.5.1f1 Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_10_19-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_10_19-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_10_19-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_10_19-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-5022\" class=\"wp-caption-text\">Unity<br \/>03\/04\/2017 , 11:10:19 PM<br \/>Unity 5.5.1f1 Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_5023\" aria-describedby=\"caption-attachment-5023\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_14_38-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5023\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_14_38-PM-300x163.jpg\" alt=\"Unity 03\/04\/2017 , 11:14:38 PM Unity 5.5.1f1 Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_14_38-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_14_38-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_14_38-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_14_38-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-5023\" class=\"wp-caption-text\">Unity<br \/>03\/04\/2017 , 11:14:38 PM<br \/>Unity 5.5.1f1 Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_5024\" aria-describedby=\"caption-attachment-5024\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_45_51-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5024\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_45_51-PM-300x163.jpg\" alt=\"Unity 03\/04\/2017 , 11:45:51 PM Unity 5.5.1f1 Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_45_51-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_45_51-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_45_51-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_45_51-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-5024\" class=\"wp-caption-text\">Unity<br \/>03\/04\/2017 , 11:45:51 PM<br \/>Unity 5.5.1f1 Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_5025\" aria-describedby=\"caption-attachment-5025\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_46_01-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5025\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_46_01-PM-300x163.jpg\" alt=\"Unity 03\/04\/2017 , 11:46:01 PM Unity 5.5.1f1 Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_46_01-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_46_01-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_46_01-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_46_01-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-5025\" class=\"wp-caption-text\">Unity<br \/>03\/04\/2017 , 11:46:01 PM<br \/>Unity 5.5.1f1 Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_5026\" aria-describedby=\"caption-attachment-5026\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_57_49-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5026\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_57_49-PM-300x163.jpg\" alt=\"Unity 03\/04\/2017 , 11:57:49 PM Unity 5.5.1f1 Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_57_49-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_57_49-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_57_49-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/04\/PhoenixGameDevelopment-03_04_2017-11_57_49-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-5026\" class=\"wp-caption-text\">Unity<br \/>03\/04\/2017 , 11:57:49 PM<br \/>Unity 5.5.1f1 Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have finally gotten around to replacing the placeholder art in\u00a0the city generator with real buildings. These are from a free asset called &#8220;White City&#8221; which is available on the asset store. There is a lot of work to be done in properly placing these buildings. Currently, there is very little code in place to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,10,11],"tags":[],"class_list":["post-5045","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/5045"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=5045"}],"version-history":[{"count":4,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/5045\/revisions"}],"predecessor-version":[{"id":5051,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/5045\/revisions\/5051"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=5045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=5045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=5045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}