{"id":106,"date":"2018-03-17T15:45:28","date_gmt":"2018-03-17T20:45:28","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=106"},"modified":"2018-03-17T15:45:28","modified_gmt":"2018-03-17T20:45:28","slug":"editor-update-terrain-2","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/03\/17\/editor-update-terrain-2\/","title":{"rendered":"Editor update &#8211; terrain"},"content":{"rendered":"<p>I&#8217;m continuing to improve the terrain editing functionality of the scene editor.\u00a0 Now when you click on a terrain object instead of changing the emissive value so that the terrain glows, a black wireframe is laid over the terrain object itself.\u00a0 Then, if you press &#8216;e&#8217; to enter edit mode, the wireframe turns light gray, as in the picture:<\/p>\n<p><a href=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-107\" src=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain2-300x140.png\" alt=\"\" width=\"300\" height=\"140\" srcset=\"https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain2-300x140.png 300w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain2-768x358.png 768w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain2-1024x477.png 1024w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain2.png 1437w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>This is a better way to do things because it doesn&#8217;t mess with the color of the terrain as it is being edited.\u00a0 When the terrain was glowing a bright green, it made it difficult to see the changes being made.\u00a0 Now you can tell what you are doing, and the wireframe really helps.\u00a0 I also change the camera to orthographic.\u00a0 This just makes it easier to navigate and get a clearer picture of the whole scene.\u00a0 The white square with line in the image is a directional light helper.<\/p>\n<p>Right now I&#8217;m running into a little trouble with saving the scene file.\u00a0 For simplicity&#8217;s sake I was trying to just save the &#8216;y&#8217; value of every vertex in the terrain.\u00a0 This isn&#8217;t working correctly and I think it&#8217;s because of an inherent limitation in the amount of data I can send through an HTTP POST.\u00a0 I may have to write the scene file data into a pop up &lt;div&gt; then copy and paste that into a scene file on the server.\u00a0 This isn&#8217;t very efficient so I&#8217;ll need to improve the process eventually, but it may be an ok solution for now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m continuing to improve the terrain editing functionality of the scene editor.\u00a0 Now when you click on a terrain object instead of changing the emissive value so that the terrain glows, a black wireframe is laid over the terrain object itself.\u00a0 Then, if you press &#8216;e&#8217; to enter edit mode, the wireframe turns light gray,&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-planning-and-development"],"_links":{"self":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/106\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}