I’m wondering why the TUIO Top circles are experiencing position offset in Particle GPU and why their positions differ from those of the Optical Flow. I have uploaded an image and a .toe file for your inspection. As shown in the uploaded image, the white circles do not align at all with the TUIO positions of my center points. This issue may lead to discrepancies in the final display effect. Could you please advise on how to resolve this? Thanks.
the uv coordinates from TUIO come in as 0-1 normalized values. The Circle TOP which you are using though has it’s root in the center, meaning 0,0 is in the middle of the texture.
Therefor you need to do 2 conversions:
from normalized 0-1 to -1-1
as you are dealing with a non-square output, consider the aspect ratio of the Circle TOP
Another thing you might want to check out is replacing the individual Circle TOPs with a Instancing setup to create the necessary circles when they are active.
For this you could use the data from the TUIO In DAT straight up as a source without having to do any scripting in the callbacks…