Flame On! Mercury Particle Engine and Kinect
- Posted: Jul 25, 2011 at 6:00 AM
- 6,657 Views
- 1 Comment
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
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
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:
- Blog: http://www.soulsolutions.com.au/Blog.aspx
- Twitter: @soulsolutions
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.
Follow the Discussion
Hot!
Remove this comment
Remove this thread
close