{"id":23,"date":"2010-10-06T16:15:42","date_gmt":"2010-10-06T16:15:42","guid":{"rendered":"http:\/\/teaching.thesystemis.com\/classes\/algo\/?p=23"},"modified":"2010-10-06T16:15:42","modified_gmt":"2010-10-06T16:15:42","slug":"homework-6","status":"publish","type":"post","link":"http:\/\/teaching.thesystemis.com\/classes\/algo\/?p=23","title":{"rendered":"homework 6"},"content":{"rendered":"<p><strong>a,b,c)<\/strong> Create 3 compositions using the vector field.\u00c2\u00a0 These can be interactive or static (meaning, the VF can change or not based on user input) based on input from the mouse, keyboard, or video \/ camera (as shows in the last example).\u00c2\u00a0 Think about drawing and using the particles in an interesting way\u00c2\u00a0 (not just circles, but how do draw images, use atan2, etc). \u00c2\u00a0 Play with the damping forces inside of the particles.\u00c2\u00a0 Make an interesting and unique field for the particles to move on.\u00c2\u00a0 Be sure to experiment with turning off the drawing of the field. \u00c2\u00a0 If you want to, think of \u00c2\u00a0a &#8220;game&#8221; based on this.<\/p>\n<p>(advanced)<\/p>\n<p><em>this is pretty\u00c2\u00a0advanced, so no worries, just throwing it out there&#8230;<\/em><\/p>\n<p><strong>d)<\/strong> I promise this will look good and be interesting\u00e2\u20ac\u00a6\u00c2\u00a0 Convert the vector field into an image, using hsv color \u00e2\u20ac\u201c\u00c2\u00a0 use the angle of the vector field for the hue (think angle = position on the color wheel), magnitude for brightness, and use full saturation.\u00c2\u00a0 Then convert hsv to\u00c2\u00a0 rgb info (some transformation routines are available here: <a href=\"http:\/\/ilab.usc.edu\/wiki\/index.php\/HSV_And_H2SV_Color_Space\">here<\/a> \/ <a href=\"http:\/\/splinter.com.au\/blog\/?p=2\">here<\/a>) and put that into a pixel array.\u00c2\u00a0 Then upload this pixel array into a texture and draw it.\u00c2\u00a0 You might need play a bit with the resolution of the vector field (you might need higher res to get a good texture image). \u00c2\u00a0 \u00c2\u00a0I promise that you will not be\u00c2\u00a0disappointed\u00e2\u20ac\u00a6.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>a,b,c) Create 3 compositions using the vector field.\u00c2\u00a0 These can be interactive or static (meaning, the VF can change or not based on user input) based on input from the mouse, keyboard, or video \/ camera (as shows in the last example).\u00c2\u00a0 Think about drawing and using the particles in an interesting way\u00c2\u00a0 (not just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-homework"],"_links":{"self":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":0,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}