{"id":192,"date":"2017-04-13T13:24:22","date_gmt":"2017-04-13T11:24:22","guid":{"rendered":"http:\/\/frantzmartinache.eu\/?p=192"},"modified":"2017-04-13T13:29:51","modified_gmt":"2017-04-13T11:29:51","slug":"parallactic-effect-while-driving","status":"publish","type":"post","link":"https:\/\/frantzmartinache.eu\/index.php\/2017\/04\/13\/parallactic-effect-while-driving\/","title":{"rendered":"Parallactic effect while driving"},"content":{"rendered":"<h1>IMPORTANT<\/h1>\n<p style=\"color: red;\">\nFran\u00e7ais: Pour que le programme javascript s&#8217;ex\u00e9cute correctement, il faut que ce post soit visualis\u00e9 sans le reste du blog pr\u00e9-charg\u00e9. Si l&#8217;image ci-dessous est statique, rechargez le post en cliquant sur son titre ou en suivant ce <a href=\"http:\/\/frantzmartinache.eu\/index.php\/2017\/04\/13\/parallactic-effect-while-driving\/\">permalien<\/a>: merci!\n<\/p>\n<p style=\"color: red;\">\nEnglish: For the javascript code to run, this blog post needs to be viewed by itself, ie. without the rest of the blog preloaded. If the image below is not animated, reload the post by clicking on its title or follow this <a href=\"http:\/\/frantzmartinache.eu\/index.php\/2017\/04\/13\/parallactic-effect-while-driving\/\">permanent link<\/a>: thanks!\n<\/p>\n<h1>Wherever I go, the Moon is following me!!<\/h1>\n<p>It is an experience surprisingly shared by many: Have you ever felt like the Moon was following you as you drive along a straight road at night? Are we really all that special or is there a simple explanation to this very common perception?<\/p>\n<p>If you carefully look at the following animation, you will notice that, as our character drives along the road, things in the picture do not apparently move at the same speed. Right by the car, the roadside seems to fly by, while the trees, a little further away do seem to move a little slower. The far away mountains also drift, albeit very slowly.<\/p>\n<p>Consider this, the distance that separates the road from the mountains is only of a few dozens of kilometers and they already barely seem to move as one drives by. With this in mind, are you really that surprised that the Moon (400,000 km away) and the stars (light years away) do seem immobile?<\/p>\n<div  style=\"text-align:center\">\n<table border=2>\n<tr>\n<td><canvas id=\"car_parallax_cnvs\" width=650 height=400><\/canvas><\/td>\n<\/tr>\n<\/table>\n<p>  <script>\n    var draw_moon  = new Image();\n    var draw_mntn  = new Image();\n    var draw_tree  = new Image();\n    var draw_rdsd  = new Image();\n    var draw_car   = new Image();\n    draw_moon.src  = \"\/assets\/car_parallax\/Moon.png\";\n    draw_mntn.src  = \"\/assets\/car_parallax\/mountains.png\";\n    draw_tree.src  = \"\/assets\/car_parallax\/tree.png\";\n    draw_rdsd.src  = \"\/assets\/car_parallax\/roadside.png\";\n    draw_car.src   = \"\/assets\/car_parallax\/car.png\";\n  <\/script><br \/>\n  <script src=\"\/scripts\/moon_parallax.js\"><\/script>\n<\/div>\n<p>Of course, if you wait long enough, because of the Earth&#8217;s spin, the postion of the Moon and the stars will begin to drift. But let&#8217;s assume that for a few minutes, they don&#8217;t. As our character drives along the road, and covers some distance, by looking at how much the mountains have drifted in relation with the &#8220;fixed&#8221; sky (measuring an angle), he should be able to tell how far the mountain range is from the road.<\/p>\n<p>In astronomy, this principle is used to figure out the distance to the most nearby stars.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IMPORTANT Fran\u00e7ais: Pour que le programme javascript s&#8217;ex\u00e9cute correctement, il faut que ce post soit visualis\u00e9 sans le reste du blog pr\u00e9-charg\u00e9. Si l&#8217;image ci-dessous est statique, rechargez le post en cliquant sur son titre ou en suivant ce permalien: merci! English: For the javascript code to run, this blog post needs to be viewed &hellip; <a href=\"https:\/\/frantzmartinache.eu\/index.php\/2017\/04\/13\/parallactic-effect-while-driving\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Parallactic effect while driving<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/posts\/192"}],"collection":[{"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/comments?post=192"}],"version-history":[{"count":10,"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/posts\/192\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/media?parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/categories?post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frantzmartinache.eu\/index.php\/wp-json\/wp\/v2\/tags?post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}