| Main > Main Forum |
| How does a Light Gun Work? |
| (1/2) > >> |
| Jabba:
I just bought a control panel from a Night Stocker game: http://www.klov.com/game_detail.php?letter=N&game_id=8870 Paid $25. It came with the Steering Wheel and the LightGun. For the life of me, I can't figure out how the light gun works. I get the trigger is most likely a switch, but how does the light gun know where you are shooting? Does it need a special screen or something? Can I set this thing up oin MAME? Thanks for the help. |
| NoOne=NBA=:
I don't know whether you can get that one to work, or not. My guess would be probably not. How they work is pretty simple. Actually, the EXACT way they work is pretty complicated, but here's the major points of the process. You have the lens in the gun that focuses light on a sensor farther back in the gun. When you fire, the other hardware (the box between the gun and your monitor, in the case of the PC guns) creates a screen flash. This flash will either be a solid white, or a pattern. Either way, the sensor looks at the "picture" it sees when the fire command was given, and sends data based on where the screen flash was at that moment. In the case of the Act-Labs guns, the other hardware processes the data read by the sensor, and then tells the computer to move the cursor to that point, and process a fire signal. The arcade guns (like what you bought) have their own hardware to process that signal. That is why the PC guns are having trouble processing the off-screen "reload" shots on some games. When the arcade guns don't see ANY of the screenflash, the hardware for them sends a "he missed the screen entirely, do a reload" message. The Act-labs gun sends a "shoot at the last place he shot because THIS shot missed" signal. |
| SirPoonga:
actually, there are several different methods, but what NoOne mentioned is the popular method. Most guns go by flash the screen method. The NES lightgun blanked the screen black and had a white bounding box around the targets. The DC is different, not sure exactly how it works, BUT you can point the gun in some game during clibration and crosshairs follow where the gun is pointing. |
| NoOne=NBA=:
My guess would be that the DC hardware is set to poll the lightgun, much like the computer does with a mouse or tablet. That would let it do a "live-track" like described. It would basically be the same as the way a computer tracks the pen, even when it is above the tablet, but sends a click when the pen touches the tablet. |
| SirPoonga:
Obviously it is polling the lightgun, but how does it know where it is pointing? |
| Navigation |
| Message Index |
| Next page |