TUIO for Processing beginner question
Posted: 21 March 2012 07:04 AM   [ Ignore ]
Rank
Joined  2012-03-13
Total Posts:  1
New Member

Hello,

This is my first post on this forum. Thanks to the community for your precious help!

I am making a rear Di Surface with ableton live and processing.

I’m working on processing and I want to draw lines between the center of display and active tuio objects.
I think that it’s in this part of the tuio Library but I don’t really understand how I can affect the center as a start point and the tuio object as a end point.

Vector tuioCursorList = tuioClient.getTuioCursors();
for (int i=0;i<tuioCursorList.size();i++) {
TuioCursor tcur = (TuioCursor)tuioCursorList.elementAt(i);
Vector pointList = tcur.getPath();

if (pointList.size()>0) {
stroke(0,0,255);
TuioPoint start_point = (TuioPoint)pointList.firstElement();;
for (int j=0;j<pointList.size();j++) {
TuioPoint end_point = (TuioPoint)pointList.elementAt(j);
line(start_point.getScreenX(width),start_point.getScreenY(height),end_point.getScreenX(width),end_point.getScreenY(height));
start_point = end_point;

If anyone could help me....

Regards

Chico

Profile