Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Using a kinect camera to offset Polylines or a single Mesh line?

$
0
0

@Anthony_Dunphy wrote:

Hello All

Learning loads, thanks for providing such great tutorials and info on this website.

I have a project that I'm working on atm and I cant get past this basic road block. I have a number of polylines that I need to use as lines that I can then offset using my Kinect.

In the image above I have 3 polylines.

Before, I have been able to use the following code to manipulate a mesh

int w = 640;
int h = 480;

ofMesh mesh;
mesh.setMode(OF_PRIMITIVE_LINES);
int step = 1;
for (int y = 0; y < h; y += step) {
	for (int x = 0; x < w; x += step) {
		if (kinect.getDistanceAt(x, y) > 0) {
			mesh.addColor(kinect.getColorAt(x, y));
			//ofDrawCircle(125, 200, 50);
			mesh.addVertex(kinect.getWorldCoordinateAt(x, y));
		}
	}
}

How can I use the getWorldCoordinates to "push out" -for want of a better word" an image from the kinnect camera from the already drawn polylines or mesh line?

Hope I made myself clear enough - any help would be greatly appreciated

Thanks

!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles