Main > Lightguns
A BYOAC Lightgun, are we up to it?
<< < (16/32) > >>
AndyWarne:
I am already looking at the issue of light guns and have got to the point of writing code and having a working IR mechanism. My intention is to make it system-independent but if this does not work out it would be necessary to have close integration with MAME. If this becomes necessary then some kind of open-source arrangement might be a good idea. The problem with open-source is that it makes recouping any financial investment difficult and this kind of project would require investment to do it properly.
Andy
Silver:
That's fantastic news Andy.

Do you mean code for a PIC/microcontroller rather than an OS?

I see your problem though. Are you looking into making it supply raw x/y co-ordinate data? and then a driver in the os?

Maybe its also time to look at the lighgun code in mame, which I believe just emulates a mouse.... time to brush up my C skills.. (or try anyway).
tmasman:

--- Quote from: ErikRuud on March 08, 2005, 01:09:22 pm ---Take a look at the TrackIR 3.
It uses a three point reflector to give a full 6 degrees of freedom.
That is the closesedt I have seen to how I think the gun system could work.

--- End quote ---

This still isn't exactly like what we want, but it's definately a proof of concept!

This device is designed to move the camera view around as you move your head... (Real-time tracking)...  There's absolutely no reason why you couldn't design something similar with reflectors or IR LEDS attached to a hand gun.

I've been thinking through the math behind calculating the gun's aim... It could be a bit tricky... If you move left or right fron the point you calibrated the gun, it would be tricky to re-figure the actual gun angle... (Although still doable).  But what if you changed your distance from the screen?  That would drastically change the angles... ug... I'd be willing to mess with it, but I've never messed with image recognition or manipulation programatically...
gr...

I might mess with some of it in my free time, but meanwhile, I'm gonna be watching Mr Warne for any further progress.
Trimoor:
3 LEDs is enough for full 3D tracking.  When moving away, the dots appear closer together.  The tracking algorithm is relatively simple; it's a video card in reverse.  It measures the distance between each dot and uses cosine to calculate a 3D object.

AndyWarne, how does an open source make investment difficult?  The investors are willing to pay for the finished product, or a finished idea.  We don't care about selling it.
Hoagie_one:
do we have an ETA on light guns Andy?
Navigation
Message Index
Next page
Previous page

Go to full version