PDA

View Full Version : Light Guns


Graham
13th October 2003, 04:02 AM
De_Bunk's thread reminded me of something I could never figure out. How do console "Light Guns" (A la the old "Duck Hunt" game, for instance) work?

Does anyone know?

How does it know where you are aiming? I can see how the gun can feed back to the console, obviously, but how does it position itself? How does it even know which way the gun is pointed?

What am I missing here?

:confused:

Graham

KillerX
13th October 2003, 04:42 AM
When you pull the trigger, the whole screen goes black except for the target area, which will be white. The gun merely has a light sensor that detects the white spot if you are aimed at it.

Mendor
13th October 2003, 04:44 AM
http://en.wikipedia.org/wiki/Video_game_light_gun

Graham
14th October 2003, 03:11 AM
You learn something every day!

Thanks guys.

Graham

davidhorman
14th October 2003, 06:52 AM
I've only played games which use the second method (flash the whole screen and use timing and a photo-sensor in the gun to work out where it's pointing).

A friend of mine had a light-pen, which I assume used a similar method, except you touched it directly to the screen. We never got it to work though.

David

Smackety
19th December 2008, 11:20 PM
So if you shoot at a light bulb or something you will always hit? I thought it detected the green color on the duck.

Paul C. Anagnostopoulos
20th December 2008, 05:42 AM
Who remembers light pens?

~~ Paul

Smackety
20th December 2008, 06:44 AM
Who remembers light pens?

~~ Paul

someone from 2003. It is a relic of an earlier age I guess.

jsiv
20th December 2008, 07:21 AM
A friend of mine had a light-pen, which I assume used a similar method, except you touched it directly to the screen. We never got it to work though.
It's the same concept, only more timing-sensitive. The pen works by taking advantage of the fact that the point on the screen where the electron beam is focused on is slightly brighter than the rest. This triggers the pen's light sensor which in turn notifies the computer which then saves the current location of the beam to a register.

The gun is simpler because it requires no position information. If there are three ducks on the screen and you press the fire button, it simply displays three different images of a black screen with a white square in succession, the position of the square representing a particular duck. If the light sensor in the gun fires, the console just has to check which image it was displaying at the time. And yes, this usually means you can cheat by just pointing it at a bright light.

Of course, both devices rely on behavior only found on old analog CRT displays, and so aren't very relevant these days.

Paul C. Anagnostopoulos
20th December 2008, 08:35 AM
I spent my undergraduate years building a graphics system. That was 1970--74, when all we had were vector displays. No such thing as raster displays yet. So the pointing devices were light pens and trackballs.

It was so tiring to use a light pen that we rigged up a spring connected to a wrist strap and hung it from the ceiling. Then the user didn't have to fight gravity quite so much.

~~ Paul

666
20th December 2008, 02:51 PM
Who remembers light pens?

~~ Paul
Me! Me! On an IBM 370. We used one to point on a timeline to program where an onboard spacecraft experiment package would be switched on and off during the orbit. Circa 1972-73 before we automated the process.