I'm planning to place a kinect on top of a projector and mount both on the ceiling, projecting on to the floor. Im then using TUIO and processing to project spotlights on people walking through.
I'm just wondering whether anyone knows if the light from the projector will interfere with the kinect's tracking? Has anyone done anything similar?
btw (slight sob story) i realise testing would solve this but i just got burgled and the projector i bought for this purpose was stolen before it got opened. no joke. now renting one for the event :(
im using processing with arduino and the "servoFirmata" example to control (funnily enough!) a few servos. The problem is that in the time between pressing 'run' on processing, and the window opening, an unidentified value is being sent to my servo, making them go mad!
Does anyone have a solution? my current workaround of unplugging the mains everytime si doing my nut!
I have this sketch in which an ellipse follows the mouse. It has easing, but can anyone tell me how to put a straightforward speed limit on the ellipses movement?
thanks in advance.
//CODE:
float x, y;
float easing = 0.05;
PVector circle = new PVector(250, 250);
int radius = 300;
void setup() {
size(500, 500);
x = y = width/2;
noStroke();
smooth();
}
void draw () {
background(51);
fill(255);
ellipse(circle.x, circle.y, radius, radius);
PVector m = new PVector(mouseX, mouseY);
if (dist(m.x, m.y, circle.x, circle.y) > radius/2) {
I want to make a simple android app sample player. I want to design my own interface just wondered if anyone could point me in the right direction as what to use, what to start researching etc.
Im trying to use openCV to track audience members in an installation. To do this i want to use the centroid information of a blob in the array.
However, the problem is that the blob's id is defined as largest blob = 1, next smallest 2, next smallest after that 3 and so on. This means for example, that if blob A's index number is 1, and a larger blob is then found, blob A's index becomes 2, and the new blob's index becomes 1.
I need the index ID to stay the same even if a new blob appears, so that I can track that blob.
Im working from a flocking sketch which uses vectors, and mapped the acceleration vector to the pitch of a violin using OSC messages to pure data. because i want a modulation, i have added the acceleration number to the pitch (or 44100) on the assumption that the acceleration number would be going up and down, in conjunction with the changes in speed. But instead it just goes up all the time! This seems bizarre. Can anyone explain whats happening?? (sorry cant really post the program as its huge with loads of libraries)
Im controlling a pan servo motor which can turn 3.5 rotations, so 1080 degrees. I currently have a value sending from the direction of an arrow within a circle, ranging from 0 to 360 degrees. I want this instead to keep counting when it passes 360, all the way to 1080.
I thought i could achieve it with something like this -
if ( panAngle > 360 && panAngle < 720 ) {
panAngle = panAngle + 360;
}
but this doesn't work, as the panAngle just becomes 0 again when it gets past 360. Can anyone help?
Have posted about this before but realised i was pretty vague! im basically trying to make a circle move in a life like way around its location, but never stray to far from.
Ive made this flocking type sketch, which will drive 5 robotic arms for an installation. What i want to do is make a function that will add a contant perlin noise movement to the balls you see in the sketch, so they do not remain still.
Im doing an installation involving 5 robotic arms. I want the arms to point towards audience members in the room, and to do this im planning to use blob detection, from a web cam pointing down from the ceiling.
I've messed with a blob detection library example to make to make it ignore the middle section of the image, so the movement of the arms in the centre of the room wont trigger any blobs.
In the program that controls the arms they currently follow the mouse, I now basically want to switch this so they instead select one of the blobs and follow it for a certain amount of time, before switching to another blob (i.e. another audience member).
I wont post the arm control program because its huge, but can someone show me how to access the location variables of an individual blob in the blob detection patch?
The patch below holds five points that follow the mouse, but are held within circular constraints.
What im trying to do is add some flocking functionality to these points; starting with separation. I realise i must first get these points to communicate to each other their vector positions. I really dont know where to start doing this. Can anyone help?
thanks in advance
Rich.
int closestToAudience = 3;
Motor[] motors = {
new Motor(150, 150),
new Motor(350, 150),
new Motor(250, 250),
new Motor(150, 350),
new Motor(350, 350)
};
void setup() {
size(500, 500);
smooth();
strokeWeight(10);
stroke(0, 100);
}
void draw() {
float motorDistanceToAudience = 100000;
background(226);
noFill();
for(int i=0; i<5; i=i+1){
// find which motor is closes to the audience
float c = motors[i].distToAudience();
if(c < motorDistanceToAudience) {
motorDistanceToAudience = c;
closestToAudience = i;
}
motors[i].draw();
}
}
//////second tab -
class Motor {
float x;
float y;
float angle = 0.0;
float segLength = 60;
float speakerX;
float speakerY;
float armlength = 200;
PVector circle;
int radius;
float easing;
Motor(int xArg, int yArg){
x = xArg;
y = yArg;
easing = 0.05;
circle = new PVector(x, y);
radius = 200;
}
void update(){
}
void draw () {
ellipse(circle.x, circle.y, radius, radius);
// println(circle.x);
PVector m = new PVector(mouseX, mouseY);
if (dist(m.x, m.y, circle.x, circle.y) > radius/2) {
i did jomasanrec's brilliant vector class tutorial, and managed to lose the code. dont want to run through it again so i was wondering if anyone had done it too, and could post the code?
im working on my final degree piece, whichis a sound sculpture that will consist of 5 robotic arms, each with a 360 degree rotation a 160 tilt. a bit like this -
i want to implement a flocking algorithm consisting of the alignment and separation rules. This algorithm will run unless a pressure sensor in front of an arm is triggered, at which point the corresponding arm will instead follow the location of the audience member, and move randomly slightly to keep everything moving.
I have made a 2d system so far, which uses the mouse XY as the audience member and then triggers the "leader", then runs the above algorithm on it. the rest then average the direction of surrounding members for the alignment.
The problem im having is now moving this into 3d. for the "alignment" rule im currently using the angle of the motors, but this will not apply in the same way when the vertical tilt is taken into account! The same with seperation (although i havent started this yet) it will be a completely different logic than what i am doing currently.
At this point im genuinely stumped. As you can see this is not just a technical problem but also a logical one.
Im basically looking for any suggestions please. or maybe anyone who has worked on anything similar before.
(not sure how to attach the code here aswell as im using multiple tabs)