The NEW Build Your Own Arcade Controls

Main => Lightguns => Topic started by: Migcar on June 11, 2022, 10:42:41 am

Title: VR controllers as lightgun
Post by: Migcar on June 11, 2022, 10:42:41 am
hello i try to achieve what the title topic says. Here the first results:

https://www.youtube.com/watch?v=OLKViwB4pEg
Title: Re: VR controllers as lightgun
Post by: Migcar on June 14, 2022, 04:18:10 pm
added relative mouse position, now i can plays Pcsx2 games with nuvee plugin, tryed the training mode of Vampire Night:

https://www.youtube.com/watch?v=safI4rWQNBQ

what i have done is a program with unity that work like this: in the headset you see a green panel, you must set the position and the dimension of the panel in a way that it fit the position&dimension of your TV/Monitor, now you must unwear the headset (finding a way to not le it enter in sleeping mode) and you can use the Motion Controller as lightgun. The inputs are managed by the program using the Win32 Api.
Sorry for my bad english





Title: Re: VR controllers as lightgun
Post by: Ugo on June 14, 2022, 10:37:01 pm
This is really cool. Good job.
Title: Re: VR controllers as lightgun
Post by: greymatr on July 07, 2022, 12:36:57 pm
I was wondering if you could share some code to this project? I would love to give it a go and if theres anything that you think that could be added then maybe we can contribute to it?
Title: Re: VR controllers as lightgun
Post by: RandyT on September 28, 2022, 07:38:58 am
I don't know what happened to this user, but he is onto something which was touched upon back when the lighthouse technology was new.  Namely, the ultimate, but expensive, "lightgun" system.

I have my doubts about the accuracy of camera-based VR controller tracking, but the lighthouses are supposedly super precise.  All it would take is a VR tracker attached to a gun (something like this (https://a.co/d/cyEWgJB)), or a specialized gun with the sensors, and a lighthouse (preferably 2) in front somewhere.  It would then know exactly the position of the gun in space, as well as exactly where the barrel is pointing.  The only problem is that it wouldn't know where in 3D space the monitor is located.  So, this would require an additional sensor for the monitor, or some finicky calibration.  But once everything was dialed in, it would probably be pretty amazing. 

Hopefully the project is made available and works with those items, as I'd love to give it a proper test.
Title: Re: VR controllers as lightgun
Post by: greymatr on September 29, 2022, 05:06:52 pm
There is a couple projects out there which use the vive with lighthouses for a lightgun. I've gotten the openvr one to compile. It also works on a quest headset but you need to use airlink.

Here is a thread on here where they talk about them: http://forum.arcadecontrols.com/index.php?topic=165508.0 (http://forum.arcadecontrols.com/index.php?topic=165508.0)
Title: Re: VR controllers as lightgun
Post by: RandyT on September 30, 2022, 10:26:52 am
Did some digging and found a virtual Mouse and keyboard driver, which would probably mitigate the need for an arduino and the associated cables.  If things work the way I'd expect, you could just send the mouse movement data straight to the driver, and maybe even map controller buttons to keyboard keys.  It's not signed, so that's a limitation.  Also, you probably don't want it active on any system used for multiplayer online games, as I suspect it could get you banned.

https://github.com/hedgar2017/loki-hidriver