Current progress of my project: Augmented Reality & Gaming.
Project info:
I'm trying to make Augmented Reality Gaming Controls for a Space-flying game. The game itself is made in Unity, Webcam capture happens in SIlverlight and the variables are passed to Unity via JavaScript.
This version: Thanks to the help of www.grin.be, this game can now be controlled with your webcam! So the idea is this:
Silverlight captures the webcam-video, calculates 3D-Matrix (using SLARToolkit) and sends it to Unity. Unity receives the matrix and calculates the rotation. This is how:
You translate a simple null-object via the matrix to control y and z rotation. Another null-object is needed to make the up-direction (= we can then control the x rotation). We make another null-object that uses "LookAt" function on the first null and then uses second null for the up direction.
Next steps: The game is playable, but is still requiring some tweaks for the controls. Also, I need to make an automatic shooter if an enemy is near the crosshair.
As you can see in the video, Unity must be active to be able to shoot. Later I will make further connection between Unity and silverlight so Unity can control Webcam, so the user don't need to switch between Unity and SL.
So there is still some work, but the project is nearly beta, stay tuned!
Oh and btw: the frame rate is 60fps in unity and above 45fps in silverlight! It's not that smooth on the captured video though
very smooth and graphically nice looking space sim.
clickforseo 7 months ago
omg very nice... much respect.. i can barely make a side scroller :P
mataiical666 9 months ago