ARTDM 170, Week 15: Advanced

573 views
526 views

Published on

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
573
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ARTDM 170, Week 15: Advanced

  1. 1. ARTDM 170, Week 15: Advanced Processing <ul><li>Gilbert Guerrero [email_address] </li></ul><ul><li>gilbertguerrero.com/blog/artdm-170/ </li></ul>
  2. 2. Full screen mode <ul><li>//enter fullscreen mode static public void main(String args[]) { PApplet.main(new String[] { &quot;--present&quot;, &quot;Video_Tesla&quot; } ); } </li></ul><ul><li>void setup() { size( screen.width , screen.height ); background(0); } </li></ul><ul><li>void draw() { </li></ul><ul><li>} </li></ul>
  3. 3. Video input <ul><li>import processing.video.*; </li></ul><ul><li>int numPixels; int[] previousFrame; Capture video; </li></ul><ul><li>void setup() { video = new Capture(this, width, height, 24); numPixels = video.width * video.height ; // Create an array to store the previously captured frame previousFrame = new int[numPixels]; loadPixels(); </li></ul><ul><li>} </li></ul><ul><li>void draw() { if ( video.available() ) { video.read(); // Read the new frame from the camera video.loadPixels(); // Make its pixels[] array available </li></ul><ul><li>} //plus a lot more stuff to figure out what to do with all those pixels every frame } </li></ul>
  4. 4. Open Processing http://processing.org
  5. 5. Arduino http://www.arduino.cc
  6. 6. Arduino projects <ul><li>Making Things Talk By Tom Igoe </li></ul>
  7. 7. Arduino projects <ul><li>Sparkfun Electronics </li></ul><ul><li>Arduino Starter Kit </li></ul><ul><li>$59.95 </li></ul>
  8. 8. Final Projects December 2 9 16 25 11 November Last day of class Present final projects (two days) Script user interaction and movement of game elements Add scoring and game over trigger 18 Design background and game elements. Embed in game symbol
  9. 9. Work on your final projects
  10. 10. Homework, due Dec 2 <ul><li>Work on your final projects </li></ul><ul><ul><li>Script user interaction and movement of game elements </li></ul></ul>
  11. 11. Thank You

×