Flame On! Mercury Particle Engine and Kinect

Description

Some of the things you can do with Kinect are just to fun. Like mixing voice control, a particle engine and you...

Kinect SDK with the Mercury Particle Engine

What do you get when you combine the Kinect SDK with the Mercury Particle Engine? Awesome fun Smile

Project Information URL: http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/738/Kinect-SDK-with-the-Mercury-Particle-Engine.aspx

Project Download URL: http://www.soulsolutions.com.au/tools/kinecteffect.zip

Project Source URL: http://www.soulsolutions.com.au/tools/kinecteffect.zip

image

image

image

image

public MainWindow()
{
    InitializeComponent();
    Loaded += WindowLoaded;
    Closed += WindowClosed;

    //audio
    RecognizerInfo ri = SpeechRecognitionEngine.InstalledRecognizers().Where(r => r.Id == RecognizerId).FirstOrDefault();
    if (ri == null) return;

    sre = new SpeechRecognitionEngine(ri.Id);

    var effects = new Choices();
    effects.Add("reset");
    effects.Add("flameon");
    //effects.Add("beam", "me", "up", "scotty");
    effects.Add("paparazzi");
    effects.Add("umbrella");
    effects.Add("jet");
    effects.Add("explode");
    effects.Add("smoking");
    //effects.Add("flower", "power");
    effects.Add("magic");
    //effects.Add("stars");
    effects.Add("fireball");
    
    var gb = new GrammarBuilder();
    //Specify the culture to match the recognizer in case we are running in a different culture.                                 
    gb.Culture = ri.Culture;
    gb.Append(effects);


    // Create the actual Grammar instance, and then load it into the speech recognizer.
    var g = new Grammar(gb);

    sre.LoadGrammar(g);
    sre.SpeechRecognized += SreSpeechRecognized;
}

Contact Information:

The Discussion

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.