Site banner
.
Home Forums Blogs Articles Photos Videos Contact FAQ                    
.
.
Wisdom Archive
Body Mind and Soul
Faith and Belief
God and Religion
Law of Attraction
Life and Beyond
Love and Happiness
Peace of Mind
Peace on Earth
Personal Faith
Spiritual Festivals
Spiritual Growth
Spiritual Guidance
Spiritual Inspiration
Spirituality and Science
Spiritual Retreats
More Wisdom
Buddhism Archives
Hinduism Archives
Sustainability
Theology Archives
Even more Wisdom
2012 - Year 2012
Affirmations
Aura
Ayurveda
Chakras
Consciousness
Cultural Creatives
Diksha (Deeksha)
Dream Dictionary
Dream Interpretation
Dream interpreter
Dreams
Enlightenment
Essential Oils
Feng Shui
Flower Essences
Gaia Hypothesis
Indigo Children
Kalki Bhagavan
Karma
Kundalini
Kundalini Yoga
Life after death
Mayan Calendar
Meaning of Dreams
Meditation
Morphogenetic Fields
Psychic Ability
Reincarnation
Spiritual Art, Music & Dance
Spiritual Awakening
Spiritual Enlightenment
Spiritual Healing
Spirituality and Health
Spiritual Jokes
Spiritual Parenting
Vastu Shastra
Womens Spirituality
Yoga Positions
Site map 2
Site map


Dream Sharing Forum

at Global Oneness Community.

Share your dreams and let others help you with the interpretation!
Dream Sharing Forum



.

Light gun - How light guns work

Light gun - How light guns work: Encyclopedia II - Light gun - How light guns work

The "light gun" is so named because it uses light as its method of detecting where on screen you are targeting. The name leads one to believe that the gun itself emits a beam of light, but in fact all light guns actually receive light through a photoreceptor diode in the gun barrel. The diode uses light reception to do its targeting, in conjunction with a timed mechanism between the trigger of th ...

See also:

Light gun, Light gun - Light guns in video games, Light gun - How light guns work, Light gun - Method one, Light gun - Method two, Light gun - Combining the methods, Light gun - Detection, Light gun - Positional guns, Light gun - Notable home console games with light gun support

Light gun, Light gun - Combining the methods, Light gun - Detection, Light gun - How light guns work, Light gun - Light guns in video games, Light gun - Method one, Light gun - Method two, Light gun - Notable home console games with light gun support, Light gun - Positional guns

Light gun: Encyclopedia II - Light gun - How light guns work



Light gun - How light guns work

The "light gun" is so named because it uses light as its method of detecting where on screen you are targeting. The name leads one to believe that the gun itself emits a beam of light, but in fact all light guns actually receive light through a photoreceptor diode in the gun barrel. The diode uses light reception to do its targeting, in conjunction with a timed mechanism between the trigger of the gun and some rather smart graphics programming.

There are two versions of this technique that are commonly used, but the concept is the same: when you pull the trigger of the gun, the screen is blanked out to black, and the diode begins reception. All or part of the screen is painted white in a way that allows the computer to judge where the gun is pointing, based on when the diode detects light. The user of the light gun notices little or nothing, because the period in which the screen is blank is very short.

Light gun - Method one

The first detection method, used by the Zapper, involves drawing each target sequentially in white light after the screen blacks out. The computer knows that if the diode detects light as it is drawing a square (or after the screen refreshes), that is the target the gun is pointed at. Essentially, the diode tells the computer whether or not you hit something, and for n objects, the sequence of the drawing of the targets tell the computer which target you hit after 1 + ceil(log2(n)) refreshes (one refresh to determine if any target at all was hit and ceil(log2(n)) to do a binary search for the object that was hit).

An interesting side effect of this is that on poorly designed games, often a player can point the gun at a light bulb, pull the trigger and hit the first target every time. Better games account for this by not using the first target for anything.

The second method, used by the Super Nintendo Entertainment System's Super Scope and computer light pens is more elaborate but more accurate.

Light gun - Method two

The trick to this method lies in the nature of the cathode ray tube inside the video monitor (it does not work with LCD screens, projectors, etc.). The screen is drawn by a scanning electron beam that travels across the screen starting at the top until it hits the end, and then moves down to update the next line. This is done repeatedly until the entire screen is drawn, and appears instantaneous to the human eye as it is done very quickly.

When the player pulls the trigger, the game brightens the entire screen for a split second, and the computer (often assisted by the display circuitry) times how long it takes the electron beam to excite the phosphor at the location the gun is pointed at. It then calculates the targeted position based on the monitor's horizontal refresh rate (the fixed amount of time it takes the beam to get from the left to right side of the screen).

Light gun - Combining the methods

Some light guns designed for method one are not timed precisely enough for method two to work exactly as described, but they can use a combination of the two methods. First the screen is brightened and the response time is measured as in method two, but the computer measures only which scanline was hit and not which horizontal pixel was hit. This does not need nearly as fast a timer that pure method 2 uses. Then using method one, the game cycles among those targets on the line.

Light gun - Detection

Once the computer knows where the gun is pointed at, it can tell if it coincides with the target or not. However, many guns of this type (including the Super Scope) ignore red light, as red phosphors have a much slower rate of decay than green or blue phosphors.

A game that uses more than one gun reads both triggers continuously and then, when one player pulls a gun's trigger, the game polls that gun's diode until it knows which object was hit.




Adapted from the Wikipedia article "How light guns work", under the G.N U Free Docmentation License. Please also see http://en.wikipedia.org/wiki

More material related to Light Gun can be found here:
Main Page
for
Light Gun
Index of Articles
related to
Light Gun


« Back








Search the Global Oneness web site
Global Oneness is a huge, really huge, web site. Almost whatever you are searching for within health, spirituality, personal development and inspirationals - you will find it here!
Google
 
 

Rate this article!

Please rate this article with 10 as very good and 1 as very poor.

.








Sneak-Peek of Global Oneness Community

Hi friend! The Global Oneness Community, the place for information and sharing about Oneness is not really launched yet (you will see there is still some clean up to do) ...but it is now open for a sneak-peek! And if you wish - please register and become one of the very first members to do so! Jonas

Forum Home, Articles, Photo Gallery, Videos, News, Sitemap
...and much more!


Dream Sharing Forum

at Global Oneness Community.

Share your dreams and let others help you with the interpretation!
Dream Sharing Forum



Forum
Articles
Images Pictures
Videos
News
Sitemap




 

 

 

 

 


 








  » Home » » Home »