{"id":175,"date":"2024-08-08T00:21:48","date_gmt":"2024-08-08T00:21:48","guid":{"rendered":"https:\/\/willkolb.com\/?p=175"},"modified":"2024-08-08T00:21:48","modified_gmt":"2024-08-08T00:21:48","slug":"the-whole-world","status":"publish","type":"post","link":"https:\/\/willkolb.com\/?p=175","title":{"rendered":"The whole world"},"content":{"rendered":"\n<p>My friend is making a webpage that handles a dashboard to some cyber security stuff and he asked me to make a globe.<\/p>\n\n\n\n<p>Well technically he didn&#8217;t ask me he just suggested that we get a spinning globe on there. Instead of googling for a free solution like a reasonable person I thought &#8220;That sounds dope&#8221; and I rushed to make a globe in blender (cough cough <a href=\"https:\/\/globe.gl\/\">https:\/\/globe.gl\/<\/a>). However the globe ended up being WAYY to good.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"520\" src=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-2.png\" alt=\"\" class=\"wp-image-176\" srcset=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-2.png 820w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-2-300x190.png 300w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-2-768x487.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p>The &#8220;land&#8221; parts are pulled from a open source\/royalty free topographical map from nasa <a href=\"https:\/\/visibleearth.nasa.gov\/images\/73934\/topography\">https:\/\/visibleearth.nasa.gov\/images\/73934\/topography<\/a><\/p>\n\n\n\n<p>The data is then converted into a normal map and I make a blue -> brown -> green gradient on the maps which isn&#8217;t always accurate (which is why there&#8217;s no inland water, such as the great lakes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"404\" src=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-3-1024x404.png\" alt=\"\" class=\"wp-image-177\" srcset=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-3-1024x404.png 1024w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-3-300x118.png 300w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-3-768x303.png 768w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-3.png 1136w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I was debating on texture painting in the blue where it obviously should be but that was pushing it in terms of how long I wanted to spend on this. Majority of my time was spent integrating the globe into <a href=\"https:\/\/threejs.org\/\" data-type=\"link\" data-id=\"https:\/\/threejs.org\/\">three.js<\/a> , then wrapping that in a class which then got wrapped in a react component. However, I&#8217;m pretty happy with the results. Only other cool thing I could think of doing is adding some kind of wave effect near the shores but because the exported diffuse map is like 3 mb I didn&#8217;t want to add much more here.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"409\" src=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-4.png\" alt=\"\" class=\"wp-image-178\" srcset=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-4.png 874w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-4-300x140.png 300w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-4-768x359.png 768w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/figure>\n\n\n\n<p>If you zoom in enough some things are just missing, for instance. Delaware? <\/p>\n\n\n\n<p>My plan there is to solve in post processing in the actual react widget to draw some state lines.<\/p>\n\n\n\n<p>The end goal had lat\/long lines, a alert system and a cursor to select said alerts. Pretty dope all in all.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"781\" src=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-5.png\" alt=\"\" class=\"wp-image-179\" srcset=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-5.png 927w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-5-300x253.png 300w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-5-768x647.png 768w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/figure>\n\n\n\n<p>(I also weirdly made the stars in the background in blender by threshold-ing some noise)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"347\" src=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-6.png\" alt=\"\" class=\"wp-image-180\" srcset=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-6.png 952w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-6-300x109.png 300w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-6-768x280.png 768w\" sizes=\"auto, (max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"649\" src=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-7.png\" alt=\"\" class=\"wp-image-181\" srcset=\"https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-7.png 770w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-7-300x253.png 300w, https:\/\/willkolb.com\/wp-content\/uploads\/2024\/08\/image-7-768x647.png 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My friend is making a webpage that handles a dashboard to some cyber security stuff and he asked me to make a globe. Well technically he didn&#8217;t ask me he just suggested that we get a spinning globe on there. Instead of googling for a free solution like a reasonable person I thought &#8220;That sounds [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":176,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blender"],"_links":{"self":[{"href":"https:\/\/willkolb.com\/index.php?rest_route=\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/willkolb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/willkolb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/willkolb.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/willkolb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175"}],"version-history":[{"count":1,"href":"https:\/\/willkolb.com\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/willkolb.com\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions\/182"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/willkolb.com\/index.php?rest_route=\/wp\/v2\/media\/176"}],"wp:attachment":[{"href":"https:\/\/willkolb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/willkolb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/willkolb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}