Augmented Reality Gaming

E

elDiablo

Guest
My mistake! It's late! It's ~3.5Meg and 20 seconds long. Dunno where 3 minutes came from =/ And the models only disappear when the system "loses" track of the marker, which won't be a problem in the final system!
 
D

Devil_Incarnate

Guest
Ah, so that's what that video was for, showing off purposes! Also, that better not have me eating the cucumber at the end...
 
E

elDiablo

Guest
A new vid is available! It shows how the interface is more likely to be - 4 paddles and a (schmexy transparent) board, plus the lovely matrix averaging to stop the jittering. Now, my housemate and I need to add a ball and some physics! :D
 
E

elDiablo

Guest
Another newer video is available. It shows a bouncing ball! And the newer theme: Christmas! All colours are just placeholders at the moment, they will change from pink :D

Some things to look at:
  • Snowmen parachuting down from the sky! They then walk around the board, randomly, and fall off the board when they get to the edges.
  • Depending on the motion of the sliders when they hit a ball, they may either increase or decrease the angle that they are bouncing at.
  • Funky spinning helper text, and the score meter in the top right. Funky.

Now, the next thing to be implemented (by tomorrow) will be the ball hitting the snowmen to give you extra point. The snowmen will then somehow explode or get crushed or something.

This is going to be released soon, so watch this space! :eek:
 

Piacular

In Cryo Sleep
  • Snowmen parachuting down from the sky! They then walk around the board, randomly, and fall off the board when they get to the edges.


  • They look suspiciously like light bulbs to the untrained eye elD... :D.

    How do you achieve such heretical trickery?! All with the use of the symbol Y... ah ha! An allusion to the predominantly male gaming population I suspect :).
 
E

elDiablo

Guest
Well, yes, that! But really it's quite simple.

  • Connect a webcam to computer.
  • Load program that reads the cam's video stream.
  • On each frame of the video, go funky image processing to find any preset patterns. This gives the orientation and depth of the pattern, etc., as the pattern is of a known size.
  • If you find a pattern, draw funky stuff with OpenGL.
  • Display the frame that was just checked as the background to the OpenGL drawn stuff. This gives the illusion that everything is "on top of" the real world.

We are only concerned with the drawing funky stuff. We are using some code from Washington University to do all the image processing stuff, as that is lots of nasty maths!

So, you get a window on your computer, which shows what the camera can see. It would be better using Augmented Reality goggles, which are like VR goggles, but have a camera attached to the front. This is so you get whatever you are looking at, rather then whatever the webcam is looking at.

Still, pretty cool.

Edit - Yeah, kinda do look like light bulbs, but meh. Also, my housemate playing the game. It's a little hard to tell in this video, but he misses the ball near the top edge, and the ball drops off the board, which is why he gets annoyed and throws the markers away :D
 

Iron_fist

Super Moderator
Staff member
that looks really really interesting
i want a go but that wouldn't be possible till the end of May when i go back to work
oh and do the snowmen affect the way the ball is moving if it collides with them as that would be awesome but then i guess lots of nasty maths which you don't want

oh and that Darwinia Mousemat rules
 
E

elDiablo

Guest
We were going to have the ball bouncing from the snowmen in true collision detection, and then have the snowmen somehow "break apart". As it stands, the ball travels through the snowmen, and the snowmen "die" by merely shrinking. It was more of a time constraint issue then nasty maths. It would just be collision detection of spheres (which is a lot nicer then collision detection of humanoid figures, for example).
 
E

elDiablo

Guest
And Augmented Reality Pong (ARPong) is RELEASED. As RAR or ZIP.

As a joint effort between myself and Craig McMahon as part of our Advanced Graphics module for Part IV MEng Computer Science course of University of Southampton. It's free, comes with everything you need to use it (including JOGL and jARToolkit, under the GNU license). This is released under the GNU license, which pretty much means it's free to use, edit and destroy, for non-commercial use. Anything worked on by students while at the University of Southampton belongs to UoS, so they will come after you! O.O

Have a sexy RAR or ZIP file of the complete code and binary distribution. Merely unzip the files (which will make a folder named CD, don't ask) to a folder whose full path does not include any spaces (again, don't ask, it explains in the readme) and either read the Readme.txt, or click the batch file (really, don't ask) to run the game! Marker cards exist as PDF files in the Markers folder. You need to print one of each, at normal size (or you'll get some funky results).

Some things to note:
  • You must have a (USB) webcam installed and plugged into your computer so that jARToolkit can detect it.
  • Run the batch file ("Start AR Pong.bat").
  • The readme has instructions on how to play. Read it.
  • It is best to play with the camera on top of your head, pointing at a table with the cards in front of you, with the screen also in front of you so you can see what you are doing. Or, get a pair of AR goggles for a few hundred quid.
  • Lighting is a BIG issue. If the marker carders can't be found, turn the lights up or down, and try focusing your webcam.
  • The marker cards are SENSITIVE. They have to be pretty damn flat, which is why we stuck ours to cardboard. Old CDs work well too, we hear.
  • Some error/log files may be created. Ignore them. We do.
  • ENJOY!

Any problems, questions, or anything, feel free to ask. I might not reply, but feel free to ask!
 
E

elDiablo

Guest
Erm, yeah ok... NO! :p

Got a camera phone you can hook up to the PC? Might work, might not. Give it a try!
 
Top