{"id":1716,"date":"2021-10-02T19:00:14","date_gmt":"2021-10-02T23:00:14","guid":{"rendered":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/?p=1716"},"modified":"2021-10-05T21:10:27","modified_gmt":"2021-10-06T01:10:27","slug":"arduino-demo-sketch-material-manipulation","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/cigrella\/arduino-demo-sketch-material-manipulation\/","title":{"rendered":"Arduino Demo Sketch: Material Manipulation"},"content":{"rendered":"\n<p>I used the light sensor and the temperature sensor to manipulate aspects of a shape&#8217;s material. I used the jit.gl.material object and various attrui objects. The light sensor&#8217;s data is used to change the specular level of the material, while the temperature sensor&#8217;s data manipulates the diffuse level of the material. <\/p>\n\n\n\n<p>I was unsure of how to change the color. I also didn&#8217;t have something that could really show the difference with the temperature sensor, but one can see the slight change when the sensor is messed with. <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-loom wp-block-embed-loom wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"myWindow\" src=\"https:\/\/www.loom.com\/embed\/1a75ec1ed1e94d2daba413b98008c1a8\" frameborder=\"0\" width=\"1000\" height=\"750\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-content\/uploads\/sites\/17\/2021\/10\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"899\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-content\/uploads\/sites\/17\/2021\/10\/image.png\" alt=\"\" class=\"wp-image-1718\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-content\/uploads\/sites\/17\/2021\/10\/image.png 1020w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-content\/uploads\/sites\/17\/2021\/10\/image-800x705.png 800w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-content\/uploads\/sites\/17\/2021\/10\/image-768x677.png 768w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-content\/uploads\/sites\/17\/2021\/10\/image-340x300.png 340w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I used the light sensor and the temperature sensor to manipulate aspects of a shape&#8217;s material. I used the jit.gl.material object and various attrui objects. The light sensor&#8217;s data is used to change the specular level of the material, while the temperature sensor&#8217;s data manipulates the diffuse level of the material. I was unsure of&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/cigrella\/arduino-demo-sketch-material-manipulation\/\">Read More<\/a><\/div>\n","protected":false},"author":171,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1716","post","type-post","status-publish","format-standard","hentry","category-arduino-demo-sketch"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/posts\/1716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/users\/171"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/comments?post=1716"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/posts\/1716\/revisions"}],"predecessor-version":[{"id":1719,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/posts\/1716\/revisions\/1719"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/media?parent=1716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/categories?post=1716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-a21\/wp-json\/wp\/v2\/tags?post=1716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}