Trail POP reset

Hello. I want to build a system with drawing a trail visuals with hands through kinect. I use a trail POP and problem that I have that it always strarts drawing a trail from the last remember points. So imagine the person goes out of the range and then someone other comes in, the first point will be the last point of the previous person. I tried disactivatin, activating, reseting changing the trail lenght with timing of the events, but I always got the long line displayed for the fraction of a second at the new detection.

Did anyone figure this out?

The Trail POP captures and retains all the points of its input. If you reset it, it will clear the recorded tail and keep a snapshot of its current input. You haven’t shared your network so I’m guessing here, but it sounds like your POP node before the Trail POP is still outputting the last known position from previous player when you reset the Trail CHOP.

So to trigger the reset at the correct moment - one approach could be to select all the player id channels of the Kinect CHOP (set Select CHOP to select channels p*/id) and feed that into a Logic CHOP with its Combined Channels parameter set to AND. The single output channel will be 0 when no players are detected, and 1 if one or more players are detected. Feed that into a CHOP Execute DAT and use the onOffToOn callback to reset the Trail POP when a player comes into view and the new player position is available.

In addition to nettoyeur’s response I checked what the Trail POP was getting using the OP Snippet for Trail CHOP example2 (maling a trail from the mouse movement) combined with example 3. I made the Reset parameter of the Trail POP receive a 1 second reset signal (I tried 1 frame resets too) from a CHOP, and for me it did not use old data. I added a Hog CHOP set to 50 msec to simulate a slow computer and the results were the same. The example is here. But look through the other OP Snippets too.

TrailCHOP_example2.tox (13.9 KB)

You’ll need to send an example network.

Thanks Nettoyeur and Greg for the help. I think the crucial was part of Greg’s tox, where he exported the chop to Reset, when I was trying with Reset Pulse.