GetDotted Domains

Viewing Thread:
"How do light guns really work?"

The "General Games Chat" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Tue 01/06/04 at 17:30
Regular
"www.bloodbanx.com"
Posts: 1,174
well i was wondering, i used to think for ages the gun shot light at the screen, but how does the screen pick up?

is there a camera in the gun?
Wed 02/06/04 at 09:31
Regular
"50 BLM,30 SMN,25 RD"
Posts: 2,299
Aliboy, that's what I'd always read as well - but that doesn't explain this:

Even if I don't pull the trigger, the crosshairs appear on the screen and follow the exact point where the gun is pointed. Even if I point the gun away from the screen and back again, it knows where it's aiming. Without drawing a blank screen (that you can clearly see when the trigger is pulled)
Wed 02/06/04 at 07:42
Regular
Posts: 14,437
Geffdof wrote:
> What about the home versions? There's no camera in my TV set so how
> does that work?

There is. The Government Is Watching You...
Tue 01/06/04 at 22:33
Regular
"Which one's pink?"
Posts: 12,152
AliBoy wrote:
> If you have read How Television Works, you know
> about the horizontal retrace and vertical retrace signals used to
> align the picture on the screen.

Or if you take physics.
Yey.
Tue 01/06/04 at 22:01
Regular
"Picking a winner!"
Posts: 8,502
Taken from the howStuffWorks website:

Lots of home video games and arcade games use some sort of gun as an input device. You point the gun at the screen and pull the trigger, and if you hit the target on the screen, the target explodes.

To create this effect, the gun contains a photodiode (or a phototransistor) in the barrel. The photodiode is able to sense light coming from the screen. The gun also contains a trigger switch. The output of the photodiode and the switch are fed to the computer controlling the game.

At the same time, the computer is getting signals from the screen driver electronics. If you have read How Television Works, you know about the horizontal retrace and vertical retrace signals used to align the picture on the screen. The screen driver electronics send pulses to the computer at the start of the horizontal and vertical retrace signals, so the computer knows where on the screen the electron beam is located during each frame.

The computer normally uses one of two different techniques to figure out whether or not the gun is pointed at the target when the user pulls the trigger:

The computer blanks the screen and then paints just the target object white. If the photodiode senses darkness after one vertical retrace signal and then light after the next, the computer assumes that the gun is pointed at the target and scores a hit.

The computer blanks the screen and then paints the entire screen white. It takes time for the electron beam to trace the entire screen while painting it white. By comparing the signal coming from the photodiode with the horizontal and vertical retrace signals, the computer can detect where the electron beam is on the screen when the photodiode first senses its light. The computer counts the number of microseconds that pass between the time the horizontal and vertical retrace signals start and the time the photodiode first senses light. The number of microseconds tells the computer exactly where on the screen the gun is pointing. If the calculated position and the position of the target match, the computer scores a hit.


***
So there you go, thats how it works.
Tue 01/06/04 at 21:56
Regular
"lets go back"
Posts: 2,661
Squall wrote:
> There is a camera in the screen and gun which picks up the signal at
> each end. Hope that answers your question. :D


What about the home versions? There's no camera in my TV set so how does that work?
Tue 01/06/04 at 18:53
Regular
"America, _ yeah!!"
Posts: 2,214
There is a camera in the screen and gun which picks up the signal at each end. Hope that answers your question. :D
Tue 01/06/04 at 17:30
Regular
"www.bloodbanx.com"
Posts: 1,174
well i was wondering, i used to think for ages the gun shot light at the screen, but how does the screen pick up?

is there a camera in the gun?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Best Provider
The best provider I know of, never a problem, recommend highly
Paul
My website looks tremendous!
Fantastic site, easy to follow, simple guides... impressed with whole package. My website looks tremendous. You don't need to be a rocket scientist to set this up, Freeola helps you step-by-step.
Susan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.