{"id":38,"date":"2011-08-09T01:30:15","date_gmt":"2011-08-08T22:30:15","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=38"},"modified":"2013-08-13T01:42:17","modified_gmt":"2013-08-12T22:42:17","slug":"latitude-longitude-on-3d-sphere","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2011\/08\/09\/latitude-longitude-on-3d-sphere\/","title":{"rendered":"Latitude Longitude on 3D sphere"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/latlong1.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"39\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2011\/08\/09\/latitude-longitude-on-3d-sphere\/latlong1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/latlong1.jpg?fit=580%2C408&amp;ssl=1\" data-orig-size=\"580,408\" 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;}\" data-image-title=\"latlong1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/latlong1.jpg?fit=580%2C408&amp;ssl=1\" class=\"alignnone size-full wp-image-39\" title=\"latlong1\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/latlong1.jpg?resize=580%2C408\" width=\"580\" height=\"408\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/latlong1.jpg?w=580&amp;ssl=1 580w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/latlong1.jpg?resize=300%2C211&amp;ssl=1 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>Testing sphere (earth), with latitude longitude positions.<br \/>\n(Texture is just thrown in there and sphere is rotated 197&#8242; to get roughly correct positions,<br \/>\ntested atleast few cities)<\/p>\n<p>Maybe could use this with GeoIP, News location plotting, Weather news plotter,<br \/>\nGPS data, Twitter, GoogleMaps api etc..?<\/p>\n<p>*Code for the math stuff is taken from here:<br \/>\n<a href=\"http:\/\/www.actionscript.org\/forums\/showthread.php3?p=722957#post722957\" target=\"_blank\">http:\/\/www.actionscript.org\/forums\/s&#8230;957#post722957<\/a><br \/>\nTexture from nasa images (said to be public domain \/ no copyright)<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a href=\"http:\/\/unitycoder.com\/upload\/demos\/latlong1\/\" target=\"_blank\"> http:\/\/unitycoder.com\/upload\/demos\/latlong1\/<\/a><br \/>\nDemo location is set at London (lat 51.50015, long -0.1262362)<br \/>\n(mouse orbit)<\/p>\n<p><strong><strong>Download source + webplayer scene:<\/strong><br \/>\n<\/strong><a title=\"Download Source\" href=\"http:\/\/unitycoder.com\/download\/index2.php?link=8&amp;uid=un1t3c0d5r\" target=\"_blank\">latlong_1.unitypackage<\/a><br \/>\n<strong><\/strong><strong><br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing sphere (earth), with latitude longitude positions. (Texture is just thrown in there and sphere is rotated 197&#8242; to get roughly correct positions, tested atleast few cities) Maybe could use this with GeoIP, News location plotting, Weather news plotter, GPS data, Twitter, GoogleMaps api etc..? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":39,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,3],"tags":[12,11],"class_list":["post-38","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-coordinates","tag-gps"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/latlong1.jpg?fit=580%2C408&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-C","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/38","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=38"}],"version-history":[{"count":5,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":2235,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions\/2235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/39"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}