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 & HelpVideo Capture,  Movie Playback,  Vision Libraries › problem with video capture and oscP5 ...
Page Index Toggle Pages: 1
problem with video capture and oscP5 ... (Read 602 times)
problem with video capture and oscP5 ...
Sep 13th, 2007, 4:47pm
 
hello everybody,

i tried to integrate oscP5 into my video program and suddenly nothing happened anymore. the screen stayed grey and there's no error message.
somebody know what is the problem?


______code___________________

import processing.video.*;

import oscP5.*;
import netP5.*;

OscP5 oscP5;
NetAddress myRemoteLocation;

Capture cam;

PImage img;
boolean newFrame=true;

// ==================================================
// setup()
// ==================================================
void setup()
{
// Size of applet
size(640, 480);

    oscP5 = new OscP5(this,12000);
    myRemoteLocation = new NetAddress("127.0.0.1",12000);


cam = new Capture(this, 40*4, 30*4, 15);
img = new PImage(80,60);  
               
}

// ==================================================
// captureEvent()
// ==================================================
void captureEvent(Capture cam)
{
cam.read();
newFrame = true;
}

// ==================================================
// draw()
// ==================================================
void draw()
{

if (newFrame)
{
newFrame=false;
               background(255);
               fill(255,255,255,150);
               rect (0,0,width,height);
}
}

Re: problem with video capture and oscP5 ...
Reply #1 - Sep 17th, 2007, 6:44pm
 
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_libraries_tools;action=display;num=1190032685
Page Index Toggle Pages: 1