{"id":1444,"date":"2023-04-24T08:05:31","date_gmt":"2023-04-24T08:05:31","guid":{"rendered":"https:\/\/floydsplace.us\/wpress\/?p=1444"},"modified":"2023-04-26T17:57:24","modified_gmt":"2023-04-26T17:57:24","slug":"updated-motion-camouflage-script","status":"publish","type":"post","link":"https:\/\/floydsplace.us\/wpress\/2023\/04\/24\/updated-motion-camouflage-script\/","title":{"rendered":"Updated Motion Camouflage Script"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This weekend I worked on developing the &#8220;dragonfly&#8221; POV-Ray script some more. There are more details behind this idea in an <a href=\"https:\/\/floydsplace.us\/wpress\/2023\/04\/15\/motion-camouflage\/\">earlier post<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the linear intercept video, without motion camouflage. You can see more movement against the background, especially in the early part. I think it helps to see this first for comparison to the motion camouflage animation. <\/p>\n\n\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/ew-90TaedlQ\" title=\"YouTube video player\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen=\"\" width=\"560\" height=\"315\" frameborder=\"0\"><\/iframe><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the updated motion camouflage video.<\/p>\n\n\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/Ul5zvzCKxVo\" title=\"YouTube video player\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen=\"\" width=\"560\" height=\"315\" frameborder=\"0\"><\/iframe><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the POV-Ray script<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include \"colors.inc\" \n\nlight_source { &lt;10, 10, -10&gt; color White \n    area_light\n    x y 10 10\n    adaptive 1\n    jitter\n    circular orient}                                               \n\ncamera {      \n  #declare viewx=2-clock*5 ;\n  #declare viewz= -2-clock*2.5 ;\n  location &lt;viewx, 2, viewz&gt;\n\/\/ viewer trajectory\n              \n\/\/ motion camo look at fixed                    \n   look_at &lt;0-clock*2,1,0&gt;  \n   focal_point &lt;0-clock*2,1,0&gt;   \n      \n\n      aperture 0.1\n      blur_samples 40\n\/\/\n}                           \n\n\/\/ intersect point &lt;-30\/7,2,20&gt;                              \n                                                            \n  \n    background { color Gray }       \n\n  plane { &lt;0, 1, 0&gt;, -1\n    pigment {\n      checker color Copper, color Blue\n    }\n  }  \n  \n  \n    plane { &lt;0, 0, 1&gt;, 20\n    pigment {\n      checker color Yellow, color ForestGreen   \n      scale 3\n    }\n  }        \n  \n\n  sphere {\n   &lt;0,1,0&gt;, 0.2 \n   pigment{color Red}\n\n  }  \n  \n\n    sphere {  \/\/ dragonfly   \n    \n    \/\/ motion camo sequence  \n    #declare dfz= 20-clock*24;               \n    \/\/ intercept point with wall\n    #declare xint=-30\/7;\n    #declare zint=20;           \n    \/\/ slope of line, rise over run\n    #declare slopedf=(xint-viewx)\/(zint-viewz); \n    \/\/ intercept of line, solve by algebra\n    #declare intercept=viewx-viewz*slopedf;\n    \/\/ x position from liner line equation \n    #declare dfx= dfz*slopedf+intercept;  \n      \n    &lt;dfx,2,dfz&gt;, 0.2\n\n   \/\/ intercept course  \n   \/\/ &lt;-4.28571428571429+clock*1.26,2,20-clock*24&gt;, 0.2\n\n   pigment{color Orange}\n   \n  }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the INI file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>; POV-Ray animation ini file\nAntialias=On\nAntialias_Threshold=0.1\nAntialias_Depth=2\n\n+W1600 +H1200 ;Width=1920\n;Height=1080\n\nInput_File_Name=\"dragonfly-camo2.pov\"\n\nInitial_Frame=1\nFinal_Frame=200\nInitial_Clock=0\nFinal_Clock=1\n\nCyclic_Animation=on\nPause_when_Done=off<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This weekend I worked on developing the &#8220;dragonfly&#8221; POV-Ray script some more. There are more details behind this idea in an earlier post. Here is the linear intercept video, without motion camouflage. You can see more movement against the background, especially in the early part. I think it helps to see this first for comparison [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"yes","footnotes":""},"categories":[13],"tags":[62],"class_list":["post-1444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computing","tag-camouflage"],"jetpack_featured_media_url":"https:\/\/floydsplace.us\/wpress\/wp-content\/uploads\/2023\/04\/dragonfly-camo2100.png","views":"","_links":{"self":[{"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/posts\/1444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/comments?post=1444"}],"version-history":[{"count":4,"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":1494,"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/posts\/1444\/revisions\/1494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/media\/1445"}],"wp:attachment":[{"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/media?parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/categories?post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/floydsplace.us\/wpress\/wp-json\/wp\/v2\/tags?post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}