{"id":5321,"date":"2021-02-20T01:05:31","date_gmt":"2021-02-19T23:05:31","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5321"},"modified":"2021-02-20T01:05:31","modified_gmt":"2021-02-19T23:05:31","slug":"using-nasadem-xyz-heightmap-data","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2021\/02\/20\/using-nasadem-xyz-heightmap-data\/","title":{"rendered":"Using nasadem.xyz heightmap data"},"content":{"rendered":"\n<p>Quick test to read <a href=\"https:\/\/www.nasadem.xyz\/\" target=\"_blank\" rel=\"noreferrer noopener\">nasadem.xyz<\/a> data and extruding mesh with it using shader. (and added local image caching, to reduce requests).<\/p>\n\n\n\n<p><strong>Project:<\/strong><br><a href=\"https:\/\/github.com\/unitycoder\/nasadem\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/unitycoder\/nasadem<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"528\" data-attachment-id=\"5322\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2021\/02\/20\/using-nasadem-xyz-heightmap-data\/image-1-10\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png?fit=680%2C528&amp;ssl=1\" data-orig-size=\"680,528\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png?fit=680%2C528&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png?resize=680%2C528&#038;ssl=1\" alt=\"\" class=\"wp-image-5322\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png?resize=300%2C233&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><figcaption>Note that mesh is extruded to real world height (which can be at thousands of meters high)<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Quick test to read nasadem.xyz data and extruding mesh with it using shader. (and added local image caching, to reduce requests). Project:https:\/\/github.com\/unitycoder\/nasadem<\/p>\n","protected":false},"author":1,"featured_media":5322,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[660],"tags":[777,1198,110,459,377,1197],"class_list":["post-5321","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opensource","tag-api","tag-dem","tag-extrude","tag-height","tag-heightmap","tag-nasadem"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png?fit=680%2C528&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1nP","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=5321"}],"version-history":[{"count":2,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5321\/revisions"}],"predecessor-version":[{"id":5324,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5321\/revisions\/5324"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5322"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}