hi poub007
poub007 wrote on Jun 21st, 2008, 9:43am:The problem is that the rimokon.irLights[0] do not correspond to the first IR source, ...
some discussion was done around your trouble, see
http://processing.org/discourse/yabb_beta/YaBB.cgi?num=1186928645/45
my test with two candles seem to be good
http://www.geocities.jp/classiclll_newweb/IR_Sensor_Test/applet/index.html
with our eyes.
irLights[i] is the result of the blob detection on the WiiRemote's IR-Camera performed by Wiiremote's hardware.
so the order of irLitghts[] may be according to spot position, left-top -> right bottom on the image of the IR-Camera.
this means
1. small roll form horrizontal position will cause the index swapping.
2. lights[1] will be switched to [0] when lights[0] is out of frame.
i think what you can do is to distinct the light source by the previous position, rather than each previous indices.
(i'm thinking about the "trackedIrLights" class.)
...btw...
poub007 wrote on Jun 21st, 2008, 9:43am:to analyse rimokon position with rimokon.senced ... that's fine.
pls use rimokon.sensed rather than rimokon.senced.