Replace the world map image with Google Earth using the example of Kinect

I need a basic guide to controlling Google Earth with Kinect Hand gestures instead of using mouse / keyboard navigation.

I ran the Kinect Developer sample toolkit and there is one named interactive gallery in C # that lets you pan the world map (it's a static image). Here is a link to documentation, Kinect interactive gallery

I definitely want to create the same thing, but let me move, scale and rotate the globe using hand gestures instead of a simple map image.

I am currently running Google Earth in a WPF application using the google earth plugin and using it through a web browser component. here is the code,

   public partial class MainWindow : Window
    public MainWindow()
        this.Loaded += new RoutedEventHandler(MainWindow_Loaded);

    void MainWindow_Loaded(object sender, RoutedEventArgs e)
        string PLUGIN_URL = @"";
        Uri url = new Uri(PLUGIN_URL);

       // this.browser.ObjectForScripting = this;



I also tried to control it by controlling the mouse cursor with Kinect, but it doesn't provide a good user experience.

I would like to add a capture gesture for panning the globe. I have looked at the kinect samples code, the documentation is not very good and I have no idea where the capture gesture is handled and the corresponding event is fired.

Here is the WorldMap.xaml code that displays the world map image:

`<PannableContentModel xmlns="clr-namespace:Microsoft.Samples.Kinect.InteractionGallery.Models;assembly=InteractionGallery-WPF" xmlns:x="">


`Instead, I would like to display the Google globe.

Any help would be appreciated!


source to share

All Articles