{"id":496,"date":"2022-02-09T22:51:09","date_gmt":"2022-02-10T04:51:09","guid":{"rendered":"https:\/\/www.chroniclesoftright.com\/blog\/?p=496"},"modified":"2022-02-09T22:51:09","modified_gmt":"2022-02-10T04:51:09","slug":"editor-progress","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2022\/02\/09\/editor-progress\/","title":{"rendered":"Editor Progress"},"content":{"rendered":"\n<p>I&#8217;m making decent progress on the world editor rewrite.\u00a0 I&#8217;m miles ahead of where I would be if I had started over from scratch, but it&#8217;s still fairly slow going.\u00a0 Every time I start over on this project that I&#8217;ve been dreaming of finishing for the last roughly 15 years it gets a little better.\u00a0 I don&#8217;t think I&#8217;m necessarily a better programmer now than I was 10 years or 5 years ago, maybe I just have better resources at my disposal (I&#8217;m looking at you, <a href=\"https:\/\/stackoverflow.com\" target=\"_blank\" rel=\"noopener\">stackoverflow<\/a>).\u00a0 In any case, the world editor now loads a flat terrain with a grass texture on it by default.\u00a0 You can open a single (for now) map that only contains a heightmap for the terrain and nothing else.\u00a0 You can then pan and orbit the camera around to look at the bumpy monstrosity of a terrain, and even save it to a heightmap file.\u00a0 Of course, you can&#8217;t actually edit the terrain\u00a0 yet so you&#8217;re just saving the file back over the one already on the server, but you can do it.\u00a0 Here&#8217;s what it looks like right now:<\/p>\n<p><a href=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-497\" src=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09-300x151.png\" alt=\"\" width=\"300\" height=\"151\" srcset=\"https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09-300x151.png 300w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09-1024x516.png 1024w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09-768x387.png 768w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09-1536x774.png 1536w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09-800x403.png 800w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09-357x180.png 357w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2022\/02\/worldEditor-2022.02.09.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Pretty impressive, huh?\u00a0 Ok, I know it&#8217;s not, but it&#8217;s a good start.<\/p>\n<p>Speaking of heightmaps, the heightmaps I&#8217;m using allow an absolutely huge range of heights but with incredibly fine details.\u00a0 The lowest possible height is -32,768 meters and the maximum height is 32,768 meters, but the height of each individual vertex can vary by as little as 4 millimeters.\u00a0 I will never really need the extreme detail or extreme range possible with the heightmap system I created, but it&#8217;s nice to have and doesn&#8217;t really cost anything extra in terms of storage or computation over a standard grayscale heightmap.\u00a0 I&#8217;ll have to do an entire post on how my system works one day.\u00a0 I&#8217;m sure I&#8217;m not the first to do heightmaps this way, but I&#8217;ve never found any resources describing my system so it might make a good read for someone.<\/p>\n<p>I&#8217;ll keep at it with the world editor and make a concerted effort to get a second asset spotlight posted this Friday.\u00a0 Until then.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m making decent progress on the world editor rewrite.\u00a0 I&#8217;m miles ahead of where I would be if I had started over from scratch, but it&#8217;s still fairly slow going.\u00a0 Every time I start over on this project that I&#8217;ve been dreaming of finishing for the last roughly 15 years it gets a little better.\u00a0&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,6],"tags":[],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-planning-and-development","category-world-editor"],"_links":{"self":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/496","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=496"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":498,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/496\/revisions\/498"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}