Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

TUIO Issues

$
0
0

Hi, I'm trying to run the Processing sketch from here.

https://github.com/memo/p5-MSAFluid/tree/master/examples/MSAFluidTuioDemo

I have the TUIO Kinect server running and that seems fine but when I try to run the sketch in Processing I get the error.

The function getTuioCursors() doesn't exist.

Below is the code that errors out.

Any advice?

Cheers.

Phil

void updateTUIO() {
    Vector tuioCursorList = tuioClient.getTuioCursors();
    for (int i=0;i<tuioCursorList.size();i++) {
        TuioCursor tcur = (TuioCursor)tuioCursorList.elementAt(i);
        float vx = tcur.getXSpeed() * tuioCursorSpeedMult;
        float vy = tcur.getYSpeed() * tuioCursorSpeedMult;
        if(vx == 0 && vy == 0) {
            vx = random(-tuioStationaryForce, tuioStationaryForce);
            vy = random(-tuioStationaryForce, tuioStationaryForce);
        }
        addForce(tcur.getX(), tcur.getY(), vx, vy);
    }

Viewing all articles
Browse latest Browse all 2896

Trending Articles