{"id":3575,"date":"2016-08-28T23:27:40","date_gmt":"2016-08-28T22:27:40","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=3575"},"modified":"2016-08-28T23:27:40","modified_gmt":"2016-08-28T22:27:40","slug":"p-152-virtual-world-concept-update-165-planet-sized-terrain-part-44","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-152-virtual-world-concept-update-165-planet-sized-terrain-part-44\/","title":{"rendered":"P-152: Virtual World Concept Update 165: Planet-sized Terrain: Part 44"},"content":{"rendered":"<p>I believe I have discovered the cause of this problem.<\/p>\n<p>I am trying to move the terrain (and the player) by 10,000 meters to ensure that both are fixed at the origin.<\/p>\n<p>However, what I failed to realise was that I am trying to move nodes on a sphere. Moving a point by 10,000 meters on a *flat* surface is very simple, however moving the same point on a sphere is very complex. A straight vector subtraction will move the node along the correct axis, but it won&#8217;t be aligned with the sphere anymore, it will be either above or below it.<\/p>\n<p>This, I believe, is the issue here. The rendered nodes are rotated at some distance along a sphere, and I need to move them by some distance along that same sphere. I can&#8217;t just subtract them, I need to find some solution that moves them along the surface of the sphere itself.<\/p>\n<p>This problem is complex, and in fact, may be impossible to solve in it&#8217;s current form.<\/p>\n<p>I have some across some circle and sphere rotation formulas and algorithms, such as Rodrigues&#8217; rotation formula which do what I want, but they require firstly converting to spherical coordinates (from cartesian), performing the rotation, and then converting back to cartesian. Secondly, it rotates by an angle, not a distance, and I would need to calculate this angle.<\/p>\n<p>I will need to do more research before I can solve this.<\/p>\n<figure id=\"attachment_3577\" aria-describedby=\"caption-attachment-3577\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_16_13-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3577\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_16_13-AM-300x192.jpg\" alt=\"P152_DEBUG 27\/08\/2016 , 03:16:13 AM Torque 3D MIT - P152\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_16_13-AM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_16_13-AM-768x492.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_16_13-AM-1024x656.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_16_13-AM.jpg 1922w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3577\" class=\"wp-caption-text\">P152_DEBUG<br \/>27\/08\/2016 , 03:16:13 AM<br \/>Torque 3D MIT &#8211; P152<\/figcaption><\/figure>\n<figure id=\"attachment_3578\" aria-describedby=\"caption-attachment-3578\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_13_21-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3578\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_13_21-AM-300x192.jpg\" alt=\"P152_DEBUG 27\/08\/2016 , 03:13:21 AM Torque 3D MIT - P152\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_13_21-AM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_13_21-AM-768x492.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_13_21-AM-1024x656.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-03_13_21-AM.jpg 1922w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3578\" class=\"wp-caption-text\">P152_DEBUG<br \/>27\/08\/2016 , 03:13:21 AM<br \/>Torque 3D MIT &#8211; P152<\/figcaption><\/figure>\n<figure id=\"attachment_3579\" aria-describedby=\"caption-attachment-3579\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-12_43_15-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3579\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-12_43_15-AM-300x192.jpg\" alt=\"P152_DEBUG 27\/08\/2016 , 12:43:15 AM Torque 3D MIT - P152\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-12_43_15-AM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-12_43_15-AM-768x492.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-12_43_15-AM-1024x656.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-12_43_15-AM.jpg 1922w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3579\" class=\"wp-caption-text\">P152_DEBUG<br \/>27\/08\/2016 , 12:43:15 AM<br \/>Torque 3D MIT &#8211; P152<\/figcaption><\/figure>\n<figure id=\"attachment_3580\" aria-describedby=\"caption-attachment-3580\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-26_08_2016-07_35_16-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3580\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-26_08_2016-07_35_16-PM-300x192.jpg\" alt=\"P152_DEBUG 26\/08\/2016 , 07:35:16 PM Torque 3D MIT - P152\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-26_08_2016-07_35_16-PM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-26_08_2016-07_35_16-PM-768x492.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-26_08_2016-07_35_16-PM-1024x656.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-26_08_2016-07_35_16-PM.jpg 1922w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3580\" class=\"wp-caption-text\">P152_DEBUG<br \/>26\/08\/2016 , 07:35:16 PM<br \/>Torque 3D MIT &#8211; P152<\/figcaption><\/figure>\n<figure id=\"attachment_3581\" aria-describedby=\"caption-attachment-3581\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-04_15_01-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3581\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-04_15_01-AM-300x192.jpg\" alt=\"P152_DEBUG 27\/08\/2016 , 04:15:01 AM Torque 3D MIT - P152\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-04_15_01-AM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-04_15_01-AM-768x492.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-04_15_01-AM-1024x656.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-27_08_2016-04_15_01-AM.jpg 1922w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3581\" class=\"wp-caption-text\">P152_DEBUG<br \/>27\/08\/2016 , 04:15:01 AM<br \/>Torque 3D MIT &#8211; P152<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I believe I have discovered the cause of this problem. I am trying to move the terrain (and the player) by 10,000 meters to ensure that both are fixed at the origin. However, what I failed to realise was that I am trying to move nodes on a sphere. Moving a point by 10,000 meters [&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-3575","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\/3575"}],"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=3575"}],"version-history":[{"count":2,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3575\/revisions"}],"predecessor-version":[{"id":3582,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3575\/revisions\/3582"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=3575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=3575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=3575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}