Lasers
Coming Attractions…
by john on Mar.31, 2009, under Head Tracking, Lasers, Manifesto visualizer, PyCon, wiimote
I had a great time at PyCon and was gratified to see the number of people that showed up for the wiiMote open space and the enthusiasm that they showed. Oh, and the patience too, given that it took much longer that I had expected to get the demo to actually work. Sorry about that.
I know that I owe everybody new downloads. I’m working on it. I want to make sure that things are packaged up nicely and are relatively easy to use. So expect a post with detailed instructions and downloads soon.
Also I’ve done some more visualizer work. It isn’t ready for download yet, but here is a preview of a new visualization mode for Manifesto:
Manifesto Demo: Happy Up Here from InsightVR on Vimeo.
Another Mutli-Missile Command!
by admin on May.13, 2008, under Lasers, missile command
Looks like Obscura Digital has made their own version of Missile Command. Instead of lasers and webcams their implementation uses a giant multi-touch screen. It is very similar to the Insight VR missile command, but playing it looks like a different experience. In terms of game play, both my implementation and Obsucra Digital’s are missing elements of the original arcade game. Neither one limits the number of missiles you can launch. Theirs is missing chain reaction effects. Mine is missing the launching of your own missiles as an explosion occurs right where the laser was seen.
Given the similarity of the two projects, I really have to wonder if they came up with this idea after seeing or hearing about my demo. But then again, if you sit down and try to think of a game that would be fun to play with either the laser or the multi-touch interface (which are very similar) Missile Command is the first thing that comes to mind…
Demo Disaster
by john on Apr.28, 2008, under Head Tracking, Lasers
So I did in fact present at Utah Code Camp. I happen to think that the presentation that I gave is, at its core, superior to the version that I gave at PyCon. It has most of what the PyCon presentation had plus:
(continue reading…)
PyCon Talk Up on Google Video
by john on Apr.24, 2008, under Head Tracking, Lasers, Marshie Attacks, PyCon, Python, pySight, wiimote
Utah Code Camp Presentation Specifics
by john on Apr.22, 2008, under Head Tracking, Lasers, Python, wiimote
As I mentioned earlier I’ll be presenting at Utah Code Camp held at Neumont University in South Jordan, UT. The schedule is out and I’m at 2:40 pm – 3:40 pm in room 201. You can download the presentation here. It should run about 45 minutes including short demos which will leave plenty of time for questions but perhaps not enough time for playing.
The new missiles, explosions, and collision detection stuff is pretty fun and should make the 3D demo all the more entertaining.
Presenting at Utah Code Camp
by john on Apr.20, 2008, under Head Tracking, Lasers
Utah Code Camp has been gracious enough to allow me to present at their Spring Code Camp on April 26, 2008. It is held at Neumont University, which is just west of the 106th South exit of I-15 in Sandy, UT. I’ll post more the exact time once I know it.
I’ll have a full hour to cover things which will allow for much more detail and demoing than the 30 minutes I had at PyCon. The 3D app has seen some improvements (missiles, explosions) which I’ll show off there as well as discussing the details of NumPy laser tracking, wiiMote head tracking, and perhaps some OpenGL recursive picking as well.
Laser Tracking with NumPy and PySight (and V4L too!)
by john on Apr.06, 2008, under Lasers, Python, pySight
In my PyCon presentation (video should be up shortly video is up!) I mentioned the difficultly of processing the pixels fast enough. In a 640×480 bitmap there are 307,200 pixels and the iSight is trying to pump them out at 30 frames per second. I did a few things to speed things up. For instance I limited the area of the bitmap that I scanned based on calibration data, I only scanned every fourth pixel (every other pixel of every other row) and I only processed every fifth frame. While this worked well enough, clearly it was not ideal.
(continue reading…)
Linux porting notes
by matt on Mar.25, 2008, under Lasers, missile command
Hello, Matt here. I’m going to discuss the Linux port of the Missile Command game. I have a Logitech QuickCam Messenger. After I installed gspcav1 on Gentoo Linux, the webcam “just worked”. Now I needed to get it working with the game.
The main task in porting to linux is to poll the webcam and push a buffer of image data to the process function that looks for red. A simple enough task.
A month or so ago, I had looked for python wrappers to the v4l interface, and I thought I came across one for v4l2 (v4l v. 1 doesn’t work now), but alas I downloaded into my /tmp directory and it has now gone into the bit bucket, and my search-fu isn’t good enough to find it again. So after getting frustrating that I’m either losing my memory or just retarded, I started looking for other wrappers. I found one called Fluendo Halogen. Using their example code I soon had image data going to the process function. But when I tried to play the game there appeared to be some weird feedback loop going on and the laser had no effect. What to do?
Debugging here is a tiny bit different that normal debugging. How do I know if the webcam is seeing the laser? And if it is why is it not being detected? Turns out that PIL has a nice function to convert a data buffer to an image. So by converting the buffer to an image, I could see what the webcam was seeing. To make a long story short, instead of giving my back a stream of RGBA values, I was getting back BGRA values (red and blue were switched) and the image was upside down. I tried the naive method of rearranging the buffer, but it was prohibitivly slow. So my brother told me to alter the processing matrices that searched for red. I also added a flip Y coordinate argument and the game was off and running.
So if you are interesting in running under linux, make sure you have Fluendo Halogen installed (or in your PYTHONPATH). Good luck!
WiiMote Head Tracking for Killing Marshie in 3D
by john on Mar.25, 2008, under Head Tracking, Lasers, Marshie Attacks, PyCon, pySight, wiimote
Laser Missle Command Video Up
by john on Mar.24, 2008, under Lasers, PyCon, missile command, pySight