Login
You're viewing the ruby.social public feed.
  • Nov 25, 2026, 8:23 PM

    Light guns are cool, they work the opposite way to how you'd imagine them working, the screen shoots the gun is how they work.

    The image on the monitor is made out of one dot whizzing left to right then turning off and dropping down a line and going back left and turning on and going left to right again until it reaches the bottom of the screen and then it starts again from the top on the next frame of video.

    When you pull the trigger the computer goes "Right, next frame, it's all gonna be white," and after it's done drawing the current frame and waited for the vertical blanking interval it starts a stopwatch. There's a photodiode in the gun behind the lens, and when that photodiode hits its absolute peak "This is the brightest I've seen this sixtieth of a second" the computer stops the stopwatch and does the maths and goes right, that was the brightest when I was drawing THIS bit of white, so that's where this player shot. The screen shoots the gun and the gun just says when.

    💬 4🔄 7⭐ 0

Replies

  • Nov 25, 2026, 8:26 PM

    This only works on a CRT, obviously, but it can be surprisingly accurate. You can get light guns for flat panels but they're all doing weird tricks involving infrared LEDs around the edges of the screen or putting a webcam in the barrel of the pistol or goofy shit like that and it never quite works right

    💬 3🔄 1⭐ 0
  • Nov 25, 2026, 8:30 PM

    Anyway for a light gun to be accurate, the monitor has to be accurate, so your geometry has to be spot-on. Also the whizzy dots from all three colour guns have to be perfectly converged al all points on the screen to make white, that's why when you're playing a very tired light gun game it often can't quite hit the corners of the screen, that's where convergence tends to degrade (and it's also the part of convergence adjustment that's most tricky to get right, you have to slide wee strips of metal between the yoke and the neck of the tube and just wiggle it about until it looks right)

    💬 3🔄 2⭐ 0
  • Nov 25, 2026, 9:09 PM

    Light pens, where you could draw on the screen in a drawing program in the 80's, same damn thing, sensing when the scanning beam was scanning the bit that the photodiode was looking at

    💬 4🔄 1⭐ 0
  • Nov 25, 2026, 9:10 PM

    wait was it a photodiode or a photoresistor

    Light-go-in-let-electricity-through-bit, anyway

    💬 4🔄 0⭐ 0
  • Nov 25, 2026, 9:19 PM

    Some arcade games (even CRT-era) with gun-shaped controllers that are fixed to the cabinet rather than on wires aren't actually light guns, they're analogue joysticks. If you can see a reticule then it's definitely not a light gun but a gun-shaped joystick, there's no relationship between the gun and the screen

    But! Some games, where the gun is mounted to the cab and you can only swivel it so it might as well have pots inside and be a joystick, are actually light gun games! Operation Wolf is one example

    💬 2🔄 0⭐ 0
  • Nov 25, 2026, 9:40 PM

    I love light gun games. Point Blank is my absolute favourite, both because of its nonviolent cheerful vibes and emphasis on accuracy and the awesome solenoid-based recoil

    💬 3🔄 1⭐ 0
  • Nov 25, 2026, 9:45 PM

    The coolest not-really-a-lightgun light gun game I ever saw was the Resident Evil arcade game. It was based on bits from Code Veronica and it had a controller that was gunshaped with two pots for pitch and yaw like you'd expect, BUT! It had two MORE pots in the base for walk and turn! You'd hold it kind of at your hip, and you could push the whole gun forward to move forward or pull it towards you to move back or push it left or right to turn. So it wasn't an on-rails shooter like every other gun game, you could actually move and shoot freely within the game.

    And it even had that fucking ridiculous between-rooms door opening animation like every Resi until they Finally Stopped With That Shit

    💬 1🔄 0⭐ 0
  • Nov 25, 2026, 9:48 PM

    Light guns were a weird little cool quirk of how CRTs worked, a sort of "Oh, we can just use a photodiode and a switch and because of how the screen works we can do this cool thing" sort of side-effect of scanning-electron-beam technology.

    These days if you wanna videogames guns it's pretty much VR, after years of no light guns or shit light guns VR actually lets you shoot a pistol in a videogame that can shoot straight enough that you don't need to put an aiming reticule on the screen. It's not the same but it's still pretty ok.

    💬 2🔄 1⭐ 0
  • 💬 3🔄 1⭐ 0
  • Nov 25, 2026, 8:29 PM

    @ifixcoinops I always thought they worked by flashing up a white bounding box around what you're supposed to shoot... except it's only now after many years, I realise that makes absolutely no fucking sense

    💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 1
  • Nov 25, 2026, 9:43 PM

    @DamonWakes @reb @ifixcoinops Physically impossible, because the trick Duck Hunt uses is to have a black frame to check for exactly that, then follow up with frames for each of the 2 ducks on screen as white boxes. If it doesn't see the black first, it registers a miss. :)

    Edit: Nothing stops you from taking potshots directly against the screen, though. >:)

    💬 0🔄 0⭐ 2
  • Nov 25, 2026, 8:32 PM

    @reb @ifixcoinops the NES zapper works like that! it's much dumber than decent light guns, it only knows "I saw some light since the last time you asked". so the game has to do a multi-frame binary search to figure out what target you actually hit. they have to make sure the gun sees black for at least one frame, too, or else you'd trivially win by pointing the gun at a light bulb.

    💬 0🔄 0⭐ 2
  • 💬 0🔄 0⭐ 0
  • Nov 25, 2026, 9:18 PM

    @ifixcoinops

    Off the top of my head, I think it would have to be a photodiode to respond fast enough to keep up with the scanlines. I don't think photoresistors would be able to do that. I remember this being one of the main engineering differences between them.

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 25, 2026, 9:30 PM

    @reb those are indeed CRTs, they're rear projection CRT tv's. Instead of having one picture tube with three electron guns, they have three picture tubes, monochrome like in a black and white TV, remember how black-and-white TVs were so much brighter than colour ones, that's because there's no shadow mask but a uniform coating of phosphor, it also means NO PIXELS! Anyway three small black and white tellies with colour filters on top of them and lenses on top of those all shining their Ridiculous Bright against a mirror and then converging on the back of a Fresnel lens. Very cool technology, I had a 60" rear projection high def CRT and went straight to a projector and skipped flat panels completely and I still miss it sometimes because the picture quality pissed all over everything else

    💬 2🔄 1⭐ 0
  • Nov 25, 2026, 9:32 PM

    @reb The reason CRTs get so heavy is because of glass, the bigger it gets the more pressure there is from the atmosphere trying to get it to collapse so the thicker the glass has to be, in a sort of exponential way. A 36" tube has the equivalent of an elephant standing on the face of the tube all the time

    💬 4🔄 4⭐ 0
  • Nov 25, 2026, 9:32 PM

    @reb Meanwhile a rear projection CRT is made up out of three little 10 or 12 inch tubes, so it's mostly just particle board and empty space, not too bad

    💬 0🔄 0⭐ 0
  • Nov 25, 2026, 9:34 PM

    @ifixcoinops dan how do you cope with the fact that we used to have all this cool tech and now we just have "computer with LCD(/OLED) glued to it" performing basically every role that used to be done with a Clever Little Mechanism?

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 2⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 25, 2026, 9:48 PM

    @ifixcoinops @reb hey so if no pixels on a black and white CRT, what kind of resolution would it be possible to get out of one? I presume one would have to replace/upgrade some of the driver circuitry. Imagine something like the monochrome display for a Sun 3/60 but running at 8K …

    Refresh rate would not be great though

    💬 2🔄 0⭐ 1
  • 💬 3🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 2
  • Nov 25, 2026, 9:52 PM

    @ifixcoinops @reb yeah figured. I don’t really need a new side project, especially one with heavy glass and high voltage wait what am I even saying. I wonder where I could get one …

    💬 1🔄 0⭐ 1
  • 💬 0🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • 💬 0🔄 0⭐ 2
  • Nov 25, 2026, 9:53 PM

    @reb @nonspecialist So a magnetic field doesn't just appear and disappear, it has to expand from nothing and contract back to nothing, and the bigger the tube the more you've gotta bend the beam, but I bet with computer-sized rather than TV-sized you could get it to whizz pretty damn quick

    Hell remember 120hz on a CRT PC monitor was no big deal back in the early aughts

    💬 2🔄 0⭐ 0
  • 💬 0🔄 0⭐ 1
  • 💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 1
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 2
  • 💬 2🔄 0⭐ 0
  • 💬 0🔄 0⭐ 2
  • 💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 2
  • 💬 1🔄 0⭐ 0
  • Nov 25, 2026, 10:03 PM

    @reb @ifixcoinops ah but this is Theoretically Fucking Infinite, so that’s ok.

    Anyway, Actually Fucking Infinite would result in a lot of chafing eventually. Infinite chafing.

    💬 0🔄 0⭐ 2
  • Nov 25, 2026, 9:58 PM

    @reb @ifixcoinops oh for sure there will be a couple of inflection points in the feasibility, and one where attempting to get past it would end up with something like Doc Brown’s speaker from Back To The Future, but dwarfing a CRT instead.

    For now, this is a gedankenexperiment

    💬 0🔄 0⭐ 2
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 1
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0