{"id":35,"date":"2024-05-15T03:33:00","date_gmt":"2024-05-15T03:33:00","guid":{"rendered":"https:\/\/absurdinstruments.com\/?p=35"},"modified":"2024-11-13T03:38:53","modified_gmt":"2024-11-13T03:38:53","slug":"media-pipe-and-touchdesigner-notes","status":"publish","type":"post","link":"https:\/\/absurdinstruments.com\/index.php\/2024\/05\/15\/media-pipe-and-touchdesigner-notes\/","title":{"rendered":"Media Pipe and Touchdesigner notes"},"content":{"rendered":"\n<p>This output is available from the pose tracking tox for mediapipe.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1244\" height=\"462\" src=\"https:\/\/absurdinstruments.com\/wp-content\/uploads\/2024\/05\/image-2.png\" alt=\"\" class=\"wp-image-38\" style=\"width:906px;height:auto\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Lillian F. Schwartz-Inspired Visual FX in TouchDesigner\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/vyJPhh490xE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>!!! for smooth looping don&#8217;t forget modulo &#8211; (absTime.seconds*5)%360 &#8211; eg for the hsv shift to start at 0 once it gets to 360 &#8211; this will be useful for a lot of things.<\/p>\n\n\n\n<p>Essentially this is created by using a noise to to generate a shifting value by animating the z axis and using colour &#8211; this info is then used to create a walking line which is used as the position of a rectangle with an emboss to create a drop shadow type style<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"610\" height=\"385\" src=\"https:\/\/absurdinstruments.com\/wp-content\/uploads\/2024\/05\/image-3.png\" alt=\"\" class=\"wp-image-40\" style=\"width:431px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"406\" src=\"https:\/\/absurdinstruments.com\/wp-content\/uploads\/2024\/05\/image-4.png\" alt=\"\" class=\"wp-image-41\"\/><\/figure>\n\n\n\n<p>Using the limit type loop in the speed chop is a useful way to make the object loop around and turn up on the other side of the screen if the values go above or below the screen position of -0.5 &#8211; 0.5<\/p>\n\n\n\n<p>The limit chop has a quantize feature that allows you to create stepped data from smooth data.<\/p>\n\n\n\n<p>By doubling up the use of the hsv adjust, once on the original rectangle colour and then again on the post feedback section of the feedback loop you can get a more complex and focused colour shift, avoiding total rainbow.  That said, I like total rainbow.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Instancing and audio<\/h2>\n\n\n\n<p>a useful bit of python &#8211; op(&#8220;operator_name&#8221;).numSamples  (or any parameter)<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Audio Reactivity and Instancing Tutorial\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/FohwxBzbNwY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>useful tips<\/p>\n\n\n\n<p>if a feedback loop is leaving a trace, make sure it&#8217;s set to 32bit rgba<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"New Grammar of Ornament in TouchDesigner Pt. 2\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/5imhvNruZjo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Using transform as a way of tiling.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This output is available from the pose tracking tox for mediapipe. !!! for smooth looping don&#8217;t forget modulo &#8211; (absTime.seconds*5)%360 &#8211; eg for the hsv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,15],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-blog","category-touchdesigner"],"_links":{"self":[{"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":2,"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/absurdinstruments.com\/index.php\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}