{"id":6823,"date":"2020-10-28T02:14:47","date_gmt":"2020-10-28T06:14:47","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/?page_id=6823"},"modified":"2020-12-07T02:47:16","modified_gmt":"2020-12-07T07:47:16","slug":"10-28-snap-lens-workshop","status":"publish","type":"page","link":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/daily-notes\/october\/10-28-snap-lens-workshop\/","title":{"rendered":"10-28 Snap Lens Workshop"},"content":{"rendered":"<h2>Foreword<\/h2>\n<p><em>There is no ethical consumption under capitalism.\u00a0<\/em><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>In light of our <a href=\"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/category\/07\/07-facereadings\/\">readings<\/a>, we acknowledge our (new media artists&#8217;) complicity in normalizing face tracking, and our ambivalence in relation to its applications (art, entertainment, &#8230;carceral surveillance)<\/li>\n<li>We acknowledge of our vulnerability as creators in using the corporate sandboxes of platform capitalism, such as Snap Lens Studio, Google <a href=\"https:\/\/github.com\/LingDong-\/handpose-facemesh-demos#facemesh-demos\">Media Pipe<\/a>, etc.<\/li>\n<li>OK!&#8230;Now let&#8217;s have fun with our faces!<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>Workshop<\/h2>\n<p>CMU BCSA alumna <a href=\"http:\/\/charstiles.com\/\">Char Stiles<\/a>, an expert live-coding artist and shader programmer, will lead a workshop on creating face masks in <a href=\"https:\/\/lensstudio.snapchat.com\/\">Snap Lens Studio<\/a>. Char is a resident artist at Snap Inc., where she works on the development of AR Snapchat filters. Prior to her workshop, you should:<\/p>\n<div>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"https:\/\/lensstudio.snapchat.com\/download\/\">Download Lens Studio<\/a>, install using the defaults.<\/li>\n<li>Download the SnapChat app\u00a0 and make a Snapchat account.<\/li>\n<li>Link your Snapchat account with Lens Studio (yellow button on the top right).<\/li>\n<li>Char has prepared a page with resources for you, <a href=\"http:\/\/charstiles.com\/lensstudio\/\">http:\/\/charstiles.com\/lensstudio\/<\/a>, including a <a href=\"https:\/\/drive.google.com\/drive\/folders\/1Glg_F-LVtbDwfo8YxDuuvoYkz9tF_2yI?usp=sharing\">template project<\/a> and her <a href=\"https:\/\/docs.google.com\/presentation\/d\/1VDBXMhqLWmFA7wxJORX7ZT67VC3eY-A5xLI1b6Lsmrw\/edit?usp=sharing\">slides<\/a>.<\/li>\n<li>Snap has <a href=\"https:\/\/lensstudio.snapchat.com\/api\/\">API documentation<\/a> here.<\/li>\n<li><em>If for some reason you need to use a p5.js facetracker instead, see the templates <a href=\"http:\/\/cmuems.com\/2019\/60212\/lectures\/sep-18\/\">here<\/a>\u00a0from last year&#8217;s 60-212 class.<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj.jpg\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-6848\" src=\"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj-1024x442.jpg\" alt=\"\" width=\"840\" height=\"363\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj-1024x442.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj-640x276.jpg 640w, https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj-768x331.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj-1536x662.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj-1200x517.jpg 1200w, https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-content\/uploads\/2020\/10\/QAGVbOZj.jpg 2048w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<hr \/>\n<h6>Code from Char&#8217;s workshop:<\/h6>\n<\/div>\n<pre>\/\/ @input Component.Image image\r\n\r\nvar event = script.createEvent(\"MouthOpenedEvent\");\r\nevent.faceIndex = 0;\r\nvar lightsOut = false;\r\nevent.bind (function (eventData)\r\n{\r\n    if (lightsOut){\r\n        script.image.mainPass.baseColor = new vec4(0,0,0,0.0); \r\n    }\r\n    else {\r\n        script.image.mainPass.baseColor = new vec4(0,0,0,0.85);\r\n    }\r\n    lightsOut = !lightsOut\r\n});\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Foreword There is no ethical consumption under capitalism.\u00a0 In light of our readings, we acknowledge our (new media artists&#8217;) complicity in normalizing face tracking, and our ambivalence in relation to its applications (art, entertainment, &#8230;carceral surveillance) We acknowledge of our vulnerability as creators in using the corporate sandboxes of platform capitalism, such as Snap Lens &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/daily-notes\/october\/10-28-snap-lens-workshop\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;10-28 Snap Lens Workshop&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":6910,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/pages\/6823"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/comments?post=6823"}],"version-history":[{"count":9,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/pages\/6823\/revisions"}],"predecessor-version":[{"id":6866,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/pages\/6823\/revisions\/6866"}],"up":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/pages\/6910"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/f2020\/wp-json\/wp\/v2\/media?parent=6823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}