i´m using the Contour Node to track fixed 3 IR-LEDs.
Together they build a triangle. Can someone help
me to get X- & Y-Coordinates as well as the rotation?

the patch uses a regular triangle, with it you can only get an incremental rotation, because you cant find out which corner is which one. but even this is non trivial…
some hints: to get the center of some points add the coordinates component wise together and divide by the amount of points, e.g.:

the Mean (Spectral) node can do this easily.
then for the rotation i would sebtract the corners from each other to get the vectors that describe the edges. but this can get very complex, because you have to find the right order of the edges, which means you have to compare results with results from the last frames. Points2Vector (2d) will give you rotation angles of vectors.

getting coordinates sounds easy… but the thing with the rotation could be complex.

What do you think about having another shape or using just two dots or more? But then I have the same problem again. I have to find out which point is on top.

Maybe I try another isosceles triangle instead of an equilateral triangle. What do you think?

Fortunately we have only one device on a table. First we tried Fiducials but it´s hard to get the right IR-light for table. Putting IR-LEDS directly in our input device is a much more easier and cheaper solution. We need the same output data like we would get from the FreeFrameFiducialTracker . X & Y Coordinates + Rotation…

After having the coordinates of the center point I just need one of the dots which is rotating around the middle while the whole input device could be moving. If i had isocles triangle I could define the highest point as the “rotation” point. Could I?

I just need a solution where it will be recognized where is the middle and which one of these 3 blobs is on top so that vvvv can build up a link via Points2Vector(2) and gives me the rotation of the 3 LEDs.

I think i have to check all 3 distances between the points. After that i compared the values with each other to find out which point is the most distant. This will by my point which will be compared to the center point so i can get the angle.

yes, now with that setup you can just get the angle of the short edge of the triangle, it is a good as any other angle of a fixed line in the triangle.
due to the one sharp edge in the triangle the center is displaced, you can either compensate this by mounting the LEDs displaced on the input device, or you find a formula to calc the circumcenter of the triangle…