Project Description
A simple "WPF4 Touch Device" using Kinect with OpenNI & NITE (written in C#).

This project makes it easy to transform your WPF4 touch application in "touch less" with the Kinect with little change : replace "Window" base class by "KinectWindow".

Currently the Touch Down and Touch Up is determined by the distance of the hand from the Kinect. A possible change would be to detect if the hand is open or closed to enable the Touch Down or Touch Up.

This project was initially published in December 2010 on Youtube : http://www.youtube.com/watch?v=K4JP50q80Ss

Sample based on the "PDC 2009 - WPF 4 Manipulation Demo" (just replace "Window" by "KinectMultipointWindow" in the XAML and C# code)
<mpd:KinectMultipointWindow x:Class="Manipulations_1.MainWindow"
        xmlns:mpd="clr-namespace:KinectTouchDevice;assembly=KinectTouchDevice"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Demo2 - Manipulations" WindowState="Maximized" Height="600" Width="800" Background="Beige">
    <Canvas x:Name="_canvas" 
            ManipulationStarting="_canvas_ManipulationStarting"
            ManipulationDelta="_canvas_ManipulationDelta"   
            >
        <Image IsManipulationEnabled="True" Width="600" Source="/Manipulations_1;component/Images/Koala.jpg">
            <Image.RenderTransform>
                <MatrixTransform Matrix="1 0 0 1 200 200" />
            </Image.RenderTransform>
        </Image>
    </Canvas>
</mpd:KinectMultipointWindow>


Screenshot :
screen.png

Last edited Jun 20, 2011 at 10:17 AM by SebastienWarin, version 10