Main > Lightguns |
VR lighthouse based tracking for lightguns |
<< < (7/11) > >> |
greymatr:
I've got a new version. This one should work now. I got my vive headset out and I couldn't get anything to display in the lenses. But I was able to see that the headset was tracking by right clicking on the HMD icon in Steam VR and selecting Display VR View. So using that view I could see it was causing the same issue when I run the program I sent. It flipped around and jumped up or down etc. So I tried a few things but didn't get anywhere so I re-wrote how I did the pose and now get it from the OVIE driver instead of through Open VR. It gets the pose after offsets are applied, so the way that I described with the saving while replaying works. Just remember to unapply the offsets when replaying after saving or it'll double the offsets. The values that are replayed come straight back out again when saving so it's rock solid now. I also got it to work with any device ID and I tested a controller with Virtual Desktop and the cursor replays in the exact spot. It should work if you wanted to save controller pose and then replay to HMD as well. I tested the OVIE offsets after getting the replay to work but the desktop mode was failing to run. I figured out I must've changed the driver dll too much for it to work so I had to compile the overlay exe again and that worked. But I had to make a change to the overlay code to get it to compile for me and I don't know if that will have broken anything else in the program. It had to do with keyboard codes so maybe only the remapping section which I'm not sure was working anyway. Hopefully this will all work now and be much easier to dial in the calibration Edit 1: I should've mentioned too that you can use all the offsets in OVIE now. Interestingly though, when I couldn't get the desktop mode of OVIE to work, I went back to the pimax and noticed the pose data it gets is always only the driver values which probably also has something to do with the problem vive was having |
Toasty833:
New version seems like it works perfectly on Index, thanks a lot. Got it pretty close to dead on with a couple of tries, fine tuning should be easy enough with OVIE. Before I forget I thought I should attach my right click border script (courtesy of a guy over the AHK forum) for anyone interested, which has worked so far in every emulator and game I've tested it in. It just takes the 5 pixel outer border of your monitor and converts left clicks in that area to right clicks, which works well with VD. You might have to adjust the timer delay from 20 to something higher on slower systems, and the program is set up for 4k so you might need to redefine the posX and Y to match something smaller. Right now I think I'm pretty happy with my setup. I've got a few more emulators to try out, but I can play the vast majority of stuff I've tested. CXBX seems to have some calibration issues I've got to work out because most people are just using DemulShooter instead but I can't, and I can only play MAME stretched fullscreen right now due to it not properly offsetting for 4:3 and expecting that to be handled by the gun. |
greymatr:
--- Quote from: Toasty833 on May 08, 2024, 06:55:56 am ---New version seems like it works perfectly on Index, thanks a lot. --- End quote --- I'm glad to hear that it is working now. --- Quote from: Toasty833 on May 08, 2024, 06:55:56 am ---Before I forget I thought I should attach my right click border script (courtesy of a guy over the AHK forum) for anyone interested --- End quote --- Thanks for that AHK script, could be very useful in future. I might have to get out my tracker gun and give it another go. --- Quote from: Toasty833 on May 08, 2024, 06:55:56 am ---I can only play MAME stretched fullscreen right now due to it not properly offsetting for 4:3 and expecting that to be handled by the gun. --- End quote --- People seem to have frequent issues with MAME and aspect ratio. There has been threads on this board about it. I don't know if anyone has found an easy solution though but I might give it a go too. --- Quote from: Toasty833 on May 08, 2024, 06:55:56 am ---CXBX seems to have some calibration issues I've got to work out because most people are just using DemulShooter instead but I can't --- End quote --- Do you know what the problem with using DemulShooter is? I'm guessing it's some kind of mouse input type related problem? |
Toasty833:
--- Quote from: greymatr on May 08, 2024, 07:27:46 am ---People seem to have frequent issues with MAME and aspect ratio. There has been threads on this board about it. I don't know if anyone has found an easy solution though but I might give it a go too. --- End quote --- Yeah, I thought it'd be an easier fix but I'm still at a bit of a loss. From my research it seems like MAME just doesn't like aspect ratio mismatches, so if you try and play 4:3 games on a 16:9 screen, only vertical lines up with horizontal losing alignment the further away from center you go. It seems most other guns offer a 4:3 offset to fix this, like Gun4IR. I haven't yet tested alternative versions of MAME though, they may have different input handling that gets around this issue, retroarch may fix it and I might wind up setting it up anyway for PS1 games and other console titles. --- Quote from: greymatr on May 08, 2024, 07:27:46 am ---Do you know what the problem with using DemulShooter is? I'm guessing it's some kind of mouse input type related problem? --- End quote --- I believe the issue is that whatever output VD is sending out is just a simple windows low level input hack, while DS is expecting an actual hardware device. You can't select the input from VD inside DS. I can partially get it working by using it with a hardware mouse and the usesinglemouse console command, the gun doesn't do anything but if I move the mouse it updates to the absolute position of the gun, and if I click the hardware mouse shots are fired at the position of the gun. I imagine you could fashion a clunky workaround with a fake hardware ID, but from my testing so far the only thing that DS seems useful for on a 1 gun setup like this is for CXBX, which is still fairly buggy and only useful for 2 games. Everything else has worked without it, and there's a good chance that CXBX will eventually get some better native mouse input support, or I can fix the issues I'm having with it. |
ThatOneSeong:
Since ^^^ up there was asking in private earlier, thought I'd just paste the same reply I gave them for everyone else reading: MAME's mouse position handling is very dumb, and just uses the entire output screen to map to the game screen - meaning no matter how you stretch or squash the image, the edge of the TV screen correlates to the edge of the game screen. Libretro, on the other hand, treats the game screen 1:1 with the display - so if you click in the game play area, it'll click in that position, and clicking on the black border area will be a screen edge/off screen shot. This will actually respect the game screen output; whether that be integer scaling or aspect ratio difference, so the gun can continue to operate in its normal mode. It's not just Libretro that does this, FWIW: PCSX2-nightly does the same thing, both for mouse inputs and a gamepad stick acting as an absolute position surrogate mouse. Others like Model 2 emu, or Flycast (both standalone & libretro core) respect this too, though the former has no real off-screen detection and uses a hack to get around it lol. Most others that use a fullscreen window in native desktop resolution should respect this. That is why I tend to say that MAME is doing it wrong. Of course, that doesn't mean the 4:3 restrictor in gun firmware is useless - at least on Windows, it is necessary due to how fullscreen apps often take over the screen resolution, and idiosyncrasies with absolute mouse positioning if the game doesn't use the same aspect ratio and... it's a lot. That's why 4:3 mode would be necessary. On Linux w/ Proton, or a version of Wine with the fshack, none of this is necessary since everything scales up to desktop resolution so the accuracy of the mouse cursor doesn't change, much like Libretro et al. That said, this is mostly talking wrt lightgun systems like GUN4ALL and GUN4IR. No idea how that applies to VR-tracking-on-pancake screens. This is mostly why I lean towards using RetroArch whenever possible. |
Navigation |
Message Index |
Next page |
Previous page |