{"id":4241,"date":"2016-11-20T23:56:29","date_gmt":"2016-11-20T23:56:29","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=4241"},"modified":"2016-12-04T23:17:29","modified_gmt":"2016-12-04T23:17:29","slug":"p-172-unitp0-p-172-part-48-space-exploration-engine-terrain-textures","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-172-unitp0-p-172-part-48-space-exploration-engine-terrain-textures\/","title":{"rendered":"P0-P-172: Part 48: Space Exploration Engine Terrain Textures"},"content":{"rendered":"<p>I have, with very little effort, succeeded in adding terrain textures to the Space Exploration Engine!<\/p>\n<p>I was quite concerned about this, and in fact, I had almost decided to postpone it to MS2, since I thought it would be difficult, but in actual fact most of the support code is there already. The terrain is made using a vertex color shader in unity, and I just needed to change that to use a conventional material (all of this was done in the editor!) and I could add textures.<\/p>\n<p>There are a few problems yet, such as the fact that I can only add one material to the entire terrain, and once I update that, the entire terrain changes at once. I believe I can fix this fairly easily by adding an array of materials\u00a0to the terrain class where currently there is an array of colours.<\/p>\n<p>The terrain texures also look quite poor up close, and I am having some issues getting normal maps, etc, to look good, but this may just require some better quality art, I am using the art that came with the standard assets package for the moment.<\/p>\n<figure id=\"attachment_4234\" aria-describedby=\"caption-attachment-4234\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_47-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4234\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_47-AM-300x163.jpg\" alt=\"Unity 19\/11\/2016 , 01:58:47 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_47-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_47-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_47-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_47-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4234\" class=\"wp-caption-text\">Unity<br \/>19\/11\/2016 , 01:58:47 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4235\" aria-describedby=\"caption-attachment-4235\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_41-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4235\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_41-AM-300x163.jpg\" alt=\"Unity 19\/11\/2016 , 01:58:41 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_41-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_41-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_41-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_58_41-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4235\" class=\"wp-caption-text\">Unity<br \/>19\/11\/2016 , 01:58:41 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4236\" aria-describedby=\"caption-attachment-4236\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-02_04_13-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4236\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-02_04_13-AM-300x163.jpg\" alt=\"Unity 19\/11\/2016 , 02:04:13 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-02_04_13-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-02_04_13-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-02_04_13-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-02_04_13-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4236\" class=\"wp-caption-text\">Unity<br \/>19\/11\/2016 , 02:04:13 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4237\" aria-describedby=\"caption-attachment-4237\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_53_02-AM-002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4237\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_53_02-AM-002-300x163.jpg\" alt=\"Unity 19\/11\/2016 , 01:53:02 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_53_02-AM-002-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_53_02-AM-002-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_53_02-AM-002-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-01_53_02-AM-002.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4237\" class=\"wp-caption-text\">Unity<br \/>19\/11\/2016 , 01:53:02 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4238\" aria-describedby=\"caption-attachment-4238\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_06_03-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4238\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_06_03-PM-300x169.jpg\" alt=\"sandbox 19\/11\/2016 , 10:06:03 PM SpaceExplorationEngine\" width=\"300\" height=\"169\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_06_03-PM-300x169.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_06_03-PM-768x432.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_06_03-PM-1024x576.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4238\" class=\"wp-caption-text\">sandbox<br \/>19\/11\/2016 , 10:06:03 PM<br \/>SpaceExplorationEngine<\/figcaption><\/figure>\n<figure id=\"attachment_4239\" aria-describedby=\"caption-attachment-4239\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_05_54-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4239\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_05_54-PM-300x169.jpg\" alt=\"sandbox 19\/11\/2016 , 10:05:54 PM SpaceExplorationEngine\" width=\"300\" height=\"169\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_05_54-PM-300x169.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_05_54-PM-768x432.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_05_54-PM-1024x576.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4239\" class=\"wp-caption-text\">sandbox<br \/>19\/11\/2016 , 10:05:54 PM<br \/>SpaceExplorationEngine<\/figcaption><\/figure>\n<figure id=\"attachment_4240\" aria-describedby=\"caption-attachment-4240\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_01_07-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4240\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_01_07-PM-300x169.jpg\" alt=\"sandbox 19\/11\/2016 , 10:01:07 PM SpaceExplorationEngine\" width=\"300\" height=\"169\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_01_07-PM-300x169.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_01_07-PM-768x432.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-19_11_2016-10_01_07-PM-1024x576.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4240\" class=\"wp-caption-text\">sandbox<br \/>19\/11\/2016 , 10:01:07 PM<br \/>SpaceExplorationEngine<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have, with very little effort, succeeded in adding terrain textures to the Space Exploration Engine! I was quite concerned about this, and in fact, I had almost decided to postpone it to MS2, since I thought it would be difficult, but in actual fact most of the support code is there already. The terrain [&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-4241","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\/4241"}],"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=4241"}],"version-history":[{"count":4,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4241\/revisions"}],"predecessor-version":[{"id":4344,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4241\/revisions\/4344"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=4241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=4241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=4241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}