Hi guys, would it be possible to use the cabela top shot elite gun ,wich is a xbox controller, attached with an oculus touch in Doom 3 BFG VR MOD by Samson:
https://www.youtube.com/watch?v=G6kI0rc ... ture=share
And then just emulate the trigger to play with the shot gun in Onward, or general FPS VR games?
Vive controller emulation using an Xbox controller
-
- One Eyed Hopeful
- Posts: 8
- Joined: Thu Mar 14, 2013 2:00 am
-
- One Eyed Hopeful
- Posts: 1
- Joined: Fri Feb 17, 2017 8:01 am
Re: Vive controller emulation using an Xbox controller
I'm New, Can You tell me from start What to Do??
-
- Cross Eyed!
- Posts: 192
- Joined: Fri Jul 04, 2014 1:43 am
Re: Vive controller emulation using an Xbox controller
I got a working script, but I think something is not totally right with the hydra fake .dlls. For some reason the yaw is in the controller's coordinate space, whereas pitch and roll are basically rotations around the cardinal/world x and z axes. This leads to the following issue: when I input yaw at 90 degrees and then input pitch, the controller rolls instead of pitching. You should have the same issue with the xbox script. I made a crude workaround whereby I input a weighted pitch and roll depending on the yaw offset, but when inbetween, say yaw 45 degrees, it glitches out at slightly bigger angles (from observation, when pitch + roll > 90 degrees). It works as intended in the extremes, i.e. yaw 0 and yaw 90 degrees. I am looking for an easy and more reliable way to convert the pitch and roll into the controller's coordinate space. Conversely, I am looking into ways to have the yaw in world space, i.e. always around the y axis. I might need to go through some unconventional rotation matrices with all these conversions, but I really would prefer not to...zelmon64 wrote:In my script the two analogue sticks default to x and y position of the Hydra controllers. When a bumper is held down the corresponding stick controls the yaw and pitch of the corresponding controller. The d-pad is set to change the roll and z position of a controller also when the corresponding bumper is held down.konstantin_lozev wrote:That's an awesome idea for emulation. I was thinking of making a similar script with a similar approach, but with a standard gamepad. How did you finally tackle the problem of 2x6dof which is 12 axes vs the 4 axes available on the Xbox (and standard) controllers? I was thinking of assuming you always move the Vive/Hydra wands somewhere from your elbows, then you have only 4 dof in total to cover in most cases.
It seems to work reasonably well and can easily be modified to use the generic `joystick` instead of `xbox360`. One interesting thing to note is that when in the SteamVR menu the real xbox controller input is detected as well as the emulated Vive controllers which can lead to unintentional things happening. I was going to use a DS4 controller instead to try to circumvent this behaviour but then found that the DS4 is also recognised by Steam. I can't find a way to turn off controller support in Steam (which I thought was rather ironic).
- zelmon64
- Cross Eyed!
- Posts: 134
- Joined: Thu Apr 09, 2015 4:27 am
Re: Vive controller emulation using an Xbox controller
Hi konstantin_lozev,konstantin_lozev wrote: I got a working script, but I think something is not totally right with the hydra fake .dlls. For some reason the yaw is in the controller's coordinate space, whereas pitch and roll are basically rotations around the cardinal/world x and z axes. This leads to the following issue: when I input yaw at 90 degrees and then input pitch, the controller rolls instead of pitching. You should have the same issue with the xbox script. I made a crude workaround whereby I input a weighted pitch and roll depending on the yaw offset, but when inbetween, say yaw 45 degrees, it glitches out at slightly bigger angles (from observation, when pitch + roll > 90 degrees). It works as intended in the extremes, i.e. yaw 0 and yaw 90 degrees. I am looking for an easy and more reliable way to convert the pitch and roll into the controller's coordinate space. Conversely, I am looking into ways to have the yaw in world space, i.e. always around the y axis. I might need to go through some unconventional rotation matrices with all these conversions, but I really would prefer not to...
Did you use the fake .dlls that come with FreePIE or the original ones CyberVillain posted (which I reposted here)? I think the key difference between these fake .dll versions was the way they handle the orientation (with the original ones handling it correctly for these circumstances).
-
- Cross Eyed!
- Posts: 192
- Joined: Fri Jul 04, 2014 1:43 am
Re: Vive controller emulation using an Xbox controller
Hi, I think I copied yours, I don't even know where the bundled ones are in the FreePIE folder. Will recheck, though...zelmon64 wrote:Hi konstantin_lozev,konstantin_lozev wrote: I got a working script, but I think something is not totally right with the hydra fake .dlls. For some reason the yaw is in the controller's coordinate space, whereas pitch and roll are basically rotations around the cardinal/world x and z axes. This leads to the following issue: when I input yaw at 90 degrees and then input pitch, the controller rolls instead of pitching. You should have the same issue with the xbox script. I made a crude workaround whereby I input a weighted pitch and roll depending on the yaw offset, but when inbetween, say yaw 45 degrees, it glitches out at slightly bigger angles (from observation, when pitch + roll > 90 degrees). It works as intended in the extremes, i.e. yaw 0 and yaw 90 degrees. I am looking for an easy and more reliable way to convert the pitch and roll into the controller's coordinate space. Conversely, I am looking into ways to have the yaw in world space, i.e. always around the y axis. I might need to go through some unconventional rotation matrices with all these conversions, but I really would prefer not to...
Did you use the fake .dlls that come with FreePIE or the original ones CyberVillain posted (which I reposted here)? I think the key difference between these fake .dll versions was the way they handle the orientation (with the original ones handling it correctly for these circumstances).
-
- One Eyed Hopeful
- Posts: 1
- Joined: Wed Nov 15, 2017 2:26 am
Re: Vive controller emulation using an Xbox controller
Sorry for necroposting, but is there any way to use steam controller instead of vive controllers? It's better then xboxpad, it have two trackpads, stick and gyro. Any possibility?
Trouble is that all this features work only when the game launching through steam and it take controller settings from steam. So it need launch the game through steam. Or it doesn't matter if this will be applied by driver? Is that driver can use gyro? And another question that I want to use it all through riftcat.
Is that theoretically can work?
Trouble is that all this features work only when the game launching through steam and it take controller settings from steam. So it need launch the game through steam. Or it doesn't matter if this will be applied by driver? Is that driver can use gyro? And another question that I want to use it all through riftcat.
Is that theoretically can work?
- zelmon64
- Cross Eyed!
- Posts: 134
- Joined: Thu Apr 09, 2015 4:27 am
Re: Vive controller emulation using an Xbox controller
For most of it you can use GloSC to make the SC output as XInput to be read by FreePIE. Then for the gyro try using steam-gyro-for-cemuhook to send the information via UPD which hopefully can be read by freeImu.Quazerd wrote:Sorry for necroposting, but is there any way to use steam controller instead of vive controllers? It's better then xboxpad, it have two trackpads, stick and gyro. Any possibility?
Trouble is that all this features work only when the game launching through steam and it take controller settings from steam. So it need launch the game through steam. Or it doesn't matter if this will be applied by driver? Is that driver can use gyro? And another question that I want to use it all through riftcat.
Is that theoretically can work?
Using it with riftcat shouldn't be a problem. Just remember to enable the multiple drivers setting for SteamVR.
-
- One Eyed Hopeful
- Posts: 1
- Joined: Wed Sep 05, 2018 2:15 pm
Re: Vive controller emulation using an Xbox controller
Hi Guys,
I know this thread is a bit old, but I'm trying to get this thing to work and followed all the steps, but I'm not able to get it to work. Any1 can list all steps step by step?
Thanks
Danny
I know this thread is a bit old, but I'm trying to get this thing to work and followed all the steps, but I'm not able to get it to work. Any1 can list all steps step by step?
Thanks
Danny
-
- One Eyed Hopeful
- Posts: 7
- Joined: Sun Sep 11, 2016 6:27 am
Re: Vive controller emulation using an Xbox controller
Hi Danny. We arw on the same boat. Have you managed to get any help around. Maybe we help each other and hopefully get help from others .?DannyDan1234 wrote:Hi Guys,
I know this thread is a bit old, but I'm trying to get this thing to work and followed all the steps, but I'm not able to get it to work. Any1 can list all steps step by step?
Thanks
Danny
Thanks