Loading...
Uploaded by desnorteado on Jan 3, 2011
Sample that shows image and depth from the kinect in the bottom right corner then the main window shows the hand tracking applying a ripple effect to the image background all build using WPF , OpenNI and NITE.
Science & Technology
Standard YouTube License
Hello,
For the ripple effect, change your AnimateBackground for this :
private void AnimateBackground()
{ if (IsMouseMoving && !HandDetected && !ReFocus) { myRipple.Center = new Point((1 / imgImage.ActualWidth) * mouse.X, (1 / imgImage.ActualHeight) * mouse.Y); myRipple.Magnitude = 0.05; myRipple.Frequency = 25; if (myRipple.Phase == 0) myRipple.Phase = 4; myRipple.Phase -= 0.1; }
}
(The key is the phase...)
Also, Nice work :)
costp 1 year ago
Load more suggestions
Hello,
For the ripple effect, change your AnimateBackground for this :
private void AnimateBackground()
{ if (IsMouseMoving && !HandDetected && !ReFocus) { myRipple.Center = new Point((1 / imgImage.ActualWidth) * mouse.X, (1 / imgImage.ActualHeight) * mouse.Y); myRipple.Magnitude = 0.05; myRipple.Frequency = 25; if (myRipple.Phase == 0) myRipple.Phase = 4; myRipple.Phase -= 0.1; }
}
(The key is the phase...)
Also, Nice work :)
costp 1 year ago