unity-optical-flow
unity-optical-flow copied to clipboard
Directions doesn't seen to follow the movement
When I move my hand to the left, the particles go left, but when I move right, the particles move up. The same happens when I move up, the particles go up, but when they move down, the particles move left.
It seems like you are using red channel for vertical movement, and green for horizontal.
I noticed this as well. Fiddled around with the shader but cant really fix it. Seems like the velocitybuffer is correct (red when I move to the right, green when I move to the left) but the particles are only moving to the right and to the front (?).