{"id":103,"date":"2018-03-15T00:08:14","date_gmt":"2018-03-15T05:08:14","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=103"},"modified":"2018-03-15T00:08:14","modified_gmt":"2018-03-15T05:08:14","slug":"editor-update-terrain","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/03\/15\/editor-update-terrain\/","title":{"rendered":"Editor update &#8211; terrain"},"content":{"rendered":"<p>Check this out:<a href=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-104\" src=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain-300x141.png\" alt=\"\" width=\"300\" height=\"141\" srcset=\"https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain-300x141.png 300w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain-768x362.png 768w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain-1024x483.png 1024w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/03\/terrain.png 1443w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>That&#8217;s a genuinely terrible excuse for a terrain but it was generated completely in the editor.\u00a0 For now right clicking on a terrain while in edit mode raises vertex closest to your click by 2 units.\u00a0 This obviously needs to be expanded to allow for arbitrary up and down movement, but it&#8217;s a start.\u00a0 The terrain object&#8217;s vertex and normal arrays have to be recomputed every time a vertex is moved, but this works.\u00a0 After the controls themselves are improved a little, I&#8217;ll need to write a way to export this terrain to a height map.\u00a0 Then I&#8217;ll have to make a way to import those height maps back into the editor.\u00a0 Lots to do.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Check this out:That&#8217;s a genuinely terrible excuse for a terrain but it was generated completely in the editor.\u00a0 For now right clicking on a terrain while in edit mode raises vertex closest to your click by 2 units.\u00a0 This obviously needs to be expanded to allow for arbitrary up and down movement, but it&#8217;s a&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-103","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\/103","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=103"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/103\/revisions\/105"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}