Archive for August 2012

shirt_candle_v03.mp3

http://sc-fa.com for more info

formingstorm_v03.mp3

http://sc-fa.com for more info

formingstorm_v02.mp3

http://sc-fa.com for more info

Twitter Weekly Updates for 2012-08-26

  • Wow, I wrote an early reading grant proposal for $2k for the preschool my son went to last year, and it was approved! Thanks, Target! #
  • Does anyone else HATE wall street CHEAT sheet's OBNOXIOUS headlines! #
  • Janka Nabay & the Bubu Gang songs playing on the jukebox inside my head. #
  • Aha, the SmartThings hub uses ZigBee for wireless, nice! I'm glad someone is packaging that tech up for consumers http://t.co/oo1AVlCn #
  • For instance, you might want your clothes dryer to text you when it's done instead of the extremely loud buzz. http://t.co/31W6q7MH #
  • RT @mariojoze: Samsung lawyer asks for a few moments because she can't find her stylus #
  • It's not really about the money. It's about everyone inventing their own things and not stealing designs. $1.05B, meh #aapl #
  • I think I pulled a punditry muscle. That's enough for one day. #

Powered by Twitter Tools

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Twitter Weekly Updates for 2012-08-19

Powered by Twitter Tools

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

3dpixelcam processing 3d pixels from live video

this isn’t even full size!

Many years ago, I wrote a processing sketch to take live video and generate a 3d pixel grid, varying the height of each 3d box based on the brightness of the video pixel it was sampling. And it was good. Times have changed, and so has processing. Now it’s easier to do what I was doing then in regards to accessing the video input and controlling the 3d camera in the sketch.  There aren’t as many bells and whistles on this version as the original, but hey, it works today.

As such, you will need JMyron and Peasycam to run this sketch.

 

/*
* 3dPixelcam
* steve cooley
* http://beatseqr.com
* license for use: creative commons non-commercial attribution share-alike
* Do Not Omit This Information From Whatever You Make With It. Thanks! -steve
*/
import processing.opengl.*;
import peasy.*;
import JMyron.*;
PeasyCam cam; // a virtual, 3d camera control
JMyron m;//a physical, actual camera object
int resolution = 20;
void setup(){
size(640,480, OPENGL);
cam = new PeasyCam(this, 320.0, 240.0, 100.0, 500);
cam.setMinimumDistance(50);
cam.setMaximumDistance(2000);
m = new JMyron();//make a new instance of the object
m.start(width,height);//start a capture at 320×240
m.findGlobs(0);//disable the intelligence to speed up frame rate
println("Myron" + m.version());
rectMode(CENTER);
noStroke();
}
void draw(){
background(255);
lights();
m.update();//update the camera view
int[] img = m.image(); //get the normal image of the camera
float r,g,b;
for(int y=0;y<height;y+=resolution){ //loop through all the pixels 
 for(int x=0;x<width;x+=resolution){ //loop through all the pixels
float av = (red(img[y*width+x])+green(img[y*width+x])+blue(img[y*width+x]))/3.0;
fill(red(img[y*width+x]),green(img[y*width+x]),blue(img[y*width+x]));
pushMatrix();
translate(x,y);
//ellipse(0,0,(255-av)/8.0,(255-av)/8.0);
box(resolution,resolution,(av));
popMatrix();
}
}
}
void keyPressed(){
// m.settings();//click the window to get the settings
resolution -= 2;
if(resolution <=1)
{
resolution = 40;
}
}
public void stop(){
m.stop();//stop the object
super.stop();
}

2013-03-12 Updated to fix wp code manglation

 

Twitter Weekly Updates for 2012-08-12

  • watch the live simulation of the Curiosity flight now! http://t.co/4f3mgMXO #
  • That. Was. Awesome! #MarsCuriosity #
  • If it was a Democrat refusing to release his tax returns, Republicans would be going ape-shit over that. #
  • Bank of America puts advertisements in my online bank statement based on my spending habits. Why am I surprised? #
  • We've been noticing the olympic commentators, too http://t.co/Oa3IDRqy #

Powered by Twitter Tools

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Twitter Weekly Updates for 2012-08-05

Powered by Twitter Tools

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter