{"id":3208,"date":"2016-07-09T20:12:45","date_gmt":"2016-07-09T19:12:45","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=3208"},"modified":"2016-07-09T20:12:45","modified_gmt":"2016-07-09T19:12:45","slug":"p-152-virtual-world-concept-update-131-planet-sized-terrain-part-10","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-152-virtual-world-concept-update-131-planet-sized-terrain-part-10\/","title":{"rendered":"P-152: Virtual World Concept Update 131: Planet-sized Terrain: Part 10"},"content":{"rendered":"<p>My current goal with this project is to fix the LOD and scaling parameters so that I can subdivide the terrain correctly based on the players distance.<\/p>\n<p>Currently, I am rendering a section of the terrain using realistic number. However, my algorithm to subdivide the terrain into different Levels of Detail doesn&#8217;t seem to work at realistic distances.<\/p>\n<p>Solving this is proving to be difficult.\u00a0I think the best thing to do would be to modify the existing system so that the LOD&#8217;s are calculated based on the realistic (64-bit) numbers. With the nodes subdivided, I can then easily cull any nodes outside the 10k limit, and then I can either render the rest at their current coordinates, or scale those coordinates down to a more reasonable scale.<\/p>\n<p>The below plots show a selection of vertices at two different scales, a radius of 6137000, and a radius of 10,000. The shape of the nodes is exactly the same, which is as it should be.<\/p>\n<figure id=\"attachment_3211\" aria-describedby=\"caption-attachment-3211\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_34_41-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3211\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_34_41-AM-300x192.jpg\" alt=\"wgnuplot 08\/07\/2016 , 04:34:41 AM Gnuplot (window id : 0)\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_34_41-AM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_34_41-AM-768x491.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_34_41-AM-1024x655.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_34_41-AM.jpg 1652w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3211\" class=\"wp-caption-text\">wgnuplot<br \/>08\/07\/2016 , 04:34:41 AM<br \/>Gnuplot (window id : 0)<\/figcaption><\/figure>\n<figure id=\"attachment_3210\" aria-describedby=\"caption-attachment-3210\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_35_16-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3210\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_35_16-AM-300x221.jpg\" alt=\"wgnuplot 08\/07\/2016 , 04:35:16 AM Gnuplot (window id : 0)\" width=\"300\" height=\"221\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_35_16-AM-300x221.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_35_16-AM-768x565.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/07\/PhoenixGameDevelopment-08_07_2016-04_35_16-AM.jpg 962w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3210\" class=\"wp-caption-text\">wgnuplot<br \/>08\/07\/2016 , 04:35:16 AM<br \/>Gnuplot (window id : 0)<\/figcaption><\/figure>\n<p>I am concerned that translating the 64-bit nodes to 32-bit space may not be possible, or may be difficult, but before I can investigate that, I need to solved the level-of-detail problem.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My current goal with this project is to fix the LOD and scaling parameters so that I can subdivide the terrain correctly based on the players distance. Currently, I am rendering a section of the terrain using realistic number. However, my algorithm to subdivide the terrain into different Levels of Detail doesn&#8217;t seem to work [&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-3208","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\/3208"}],"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=3208"}],"version-history":[{"count":4,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3208\/revisions"}],"predecessor-version":[{"id":3214,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3208\/revisions\/3214"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=3208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=3208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=3208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}