Unity3D and Silverlight4 handshake

Hello to the community !

I am new to Unity3D and I am very excited about Unity3D !
This is my first Unity3D project !

Normally, I am developing software for Win OS in c# , .NET and Silverlight4.

So I decided to create a small project to combine Unity3D and Silverlight4 to use
the webcam and audio input from Silverlight4 in the webplayer of Unity3D.

You can play around with the test scene here :

http://www.sohatec-gmbh.ch/ITplayground/silverlight/sl4/sl4Bridge/default.html

You have to install Unity3D webplayer and Silverlight player on your system.
The silverlight player is similar in handling (install/deinstall) like the Unity3D player !

The test scene is very basic and built from standard assets from Unity3D. (I am not a 3D artist… but this is on my ToDo list)

The scene character (his name is Sweatty…:slight_smile: ) is a simple physic based character controller.

To use the test scene :

Silverlight 4 part :
After click on the recording button in the silverlight part of the site (beneath the Unity3D webplayer window)
you should see the webcam image on the vertical plane in the background of the Unity3D webplayer section.
In the section Audio – SpectrumAnalyzer you can see the tone spectrum graph of the microphone signal.
Hint : The value of the main tone (highest signal amplitude) is not the frequency in Hertz!
With the slider control you can set the trigger level, to detect the main tone.

Unity3D web player part :
You have to select first the Unity3D webplayer window section with the mouse to give the focus !
To move “Sweatty” use cursor control or -w-a-s-d. To jump use spacebar.
There is a second possibility to jump !
You can whistle with your mouth in the microphone.
The higher the frequency of the tone is, the higher is the jump.

The main goal of the project is to demonstrate the cooperation of Unity3D and Silverlight4
and to show primitive sound input control for extending character movement or what ever !?

The scene was tested under :

Win 7 Professional 64bit and Firefox. Dell Studio 1747, 4GB Ram
Win Vista Home Basic 32bit and Firefox 3.6.8. Dell Vostro 1700, 4GB Ram
Win 7 and Chrome

I hope you can enjoy my simple little homework !

Thanks

Haha, this is funny. This is like totally my project. Well, I also trying to make a good communication between Unity3D and SL.

You have done a good job on sending the image!