Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Unity 3D Space Game WIP05

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,292
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 10, 2011

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

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • very smooth and graphically nice looking space sim.

  • omg very nice... much respect.. i can barely make a side scroller :P

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more