KozGit / DOOM-3-BFG-VR

Doom 3 BFG VR: Fully Possessed. Doom 3 BFG with native Oculus Rift/Touch or OpenVR support
GNU General Public License v3.0
371 stars 52 forks source link

(Oculus GO with ALVR) Weapon sticks to view position instead of the Go controller #271

Open konnektor17 opened 6 years ago

konnektor17 commented 6 years ago

Hi! I Tried the game on the GearVR (oculus go is the same from this standpoint) using ALVR. Everything works perfectly, I can move the gun around with the motion controller, however whenever I move with the joystick, the gun resets itself into, and locks into the view direction (so it follows my head instead of the motion controller). When this occurs, and I press the reload button, then I regain control of the gun using the motion controller, until I move again.

This problem prevents aiming while moving, because whenever I move, the gun is locked at the view direction.

The wierd thing is, that if I use the ALVR ARCore version, that has positional tracking (trough the phone camera), then this problem does not occur.

The problem may be on ALVR's end, but I need advice to track it down further. Do you have any idea what could cause this?

KozGit commented 6 years ago

This seems odd, off the top of my head I can't think of anything specific, but I'm really not familiar with ALVR, Which joystick are you using when the problem happens?

CarlKenner commented 6 years ago

I haven't been able to get ALVR to run on my computer and GearVR yet. But I'll have a look at it once I get it installed. I don't have a controller for GearVR though.

Where is the ALVR ARCore version? I didn't see it.

KozGit commented 6 years ago

Again, not sure how ALVR is integrating, but you could try disabling vr_autoSwitchControllers ( ~ to open console, then vr_autoSwitchControllers 0 and enter ), this may help.

CarlKenner commented 6 years ago

Oh, you're using the GearVR controller (through ALVR) AND a regular gamepad? Then yes, that's kind of the intended behaviour. It's working the way it's supposed to work. It thinks you're stopping using your Vive controllers and switching to your gamepad, then it thinks you're switching back to your Vive controller when you press a button on it. Use the vr_autoSwitchControllers console command like KozGit said above. That's designed for exactly this situation where you are using a motion controller in one hand and a gamepad in the other, or you are using a gamepad in addition to motion controllers.

konnektor17 commented 6 years ago

Thnaks that will probably it, because if I use a keyboard instead of the xbox controller it works flawlessly. I will try that console command.

CarlKenner commented 6 years ago

I'll try to get ALVR working though. Then I'll see if I can improve support for it. Maybe I should handle all cases where there's only a single tracked controller.

KozGit commented 6 years ago

Did changing the cvar take care of the issue?