We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › glovepie & processing is so slow
Page Index Toggle Pages: 1
glovepie & processing is so slow (Read 775 times)
glovepie & processing is so slow
Jul 14th, 2008, 12:00am
 
hello

i want to learn processing, so i used ths simple script. but why is it so slow?
the glovepie script:
SendOsc("127.0.0.1", 3000, "/", var.led1_x, var.led1_y)
var.led1_x = Wiimote.dot1x
var.led1_y = Wiimote.dot1y

the processing script:
import oscP5.*;
import netP5.*;
OscP5 oscP5;
NetAddress myRemoteLocation;
float wii_x, wii_y;
PImage img;
PImage maskImg;
void setup() {
 size(500,500);
 frameRate(25);
 oscP5 = new OscP5(this,3000);
 myRemoteLocation = new NetAddress("127.0.0.1",3000);
 img = loadImage("test.jpg");
}
void oscEvent(OscMessage theOscMessage) {
wii_x = theOscMessage.get(0).intValue();
wii_y = theOscMessage.get(1).intValue();  
}
void draw()
{
 background(0);
 image(img, wii_x-50, wii_y-50);
}
Page Index Toggle Pages: 1