dylanmpeck / VRBike

Virtual reality fitness app where player pedals a hardware exercise bike and dodges endless runner style obstacles.
0 stars 0 forks source link

Do this VR Bike app work with Oculus Quest? #2

Open castana1962 opened 4 years ago

castana1962 commented 4 years ago

Hi Dylan I am very interested in building this app for Oculus Quest, Would it be possible? Thanks Alejandro

dylanmpeck commented 4 years ago

Hey Alejandro,

It would with a little bit of modifying. You'd need to remove all the Windows Mixed Reality components and sub them out for the OVR (Oculus) equivalents. There's not that much to change though as I believe this app only uses a WMR camera rig for VR display and calculating angle of head. There could be something else though - it's been a little while!

I actually originally made this for Quest at a Facebook Game Jam, but then changed it to WMR because that's all I had access to at the time. Wish I had maintained two versions!

Thanks, Dylan

castana1962 commented 4 years ago

Hey Dylan, First, thanks to answer me !! On the other, I will have to search how to change the Windows Mixed Reality components to the Oculus ones. To be honest with you, I have no idea about how to do it :) I am thinking of using it for people with Sclerosis Multiple and for other ones with health problems. Thanks to let me use your repo for this purpose... Best Regards Alejandro

castana1962 commented 4 years ago

Hey Dylan, Sorry to bother you but I was searching about this topic and it seems the Windows Mixed Reality components are not necessaries in your project because MRTK is especially good for creating great UI elements but I remove the MRTK Game Objects of your project and add an Oculus Camera Prefab instead and the project is broken :), for that reason, Could you advice what are the Game Objects that I would have to remove of it? Would it be possible? Thanks for your time. Alejandro

dylanmpeck commented 4 years ago

Oh you know what. I think MRTK will work with Quest. You'd only need to convert it to pure Oculus plugins if you want it on the Oculus store. Back when I did this, there were issues with compatibility, but looking it up now, it looks like the Quest might be able to run the app as is. You'd just have to sideload it.

Have you tried it on Quest already?

castana1962 commented 4 years ago

Hi @dylanmpeck , About your comment about if MRTK works with Quest, is "YES". Please see this repo https://github.com/provencher/MRTK-Quest :) I cannot try it in Oculus Quest yet. I opened it Unity and try to see it in my Oculus Rift from Unity and after the SteamVR app opened, for it, I guess that you used Steam VR plugin to build your VR Bike project, Is it possible? Thanks for your time Regards

dylanmpeck commented 4 years ago

I didn't use steamVR in this project at all. Was using a WMR headset and tested and built through WMR.

But, I believe that's to be expected. Without Oculus Integration Plugin installed, you're running the Unity/MRTK app through openVR. And, Unity relies on SteamVR to run openVR stuff. Or at least, it did at the time I made that project, so it should still be in that versioning.

Did it run in steamVR or did it have trouble?

castana1962 commented 4 years ago

Hi again I ran it from my Rift. First, I removed the Open VR from Project Settings/Player and then I installed the Oculus Integration plugin and add the OVR Camera Rig prefab and disabled the Camera/MixedRealityPlayspace. Now. I can see the Song Selection UI but I cannot to interact with it... Now I am going to add both right/left controllers in the OVR Camera Rig and I will see if I can go ahead to the next scene.... Please if you have an any better idea . please let me know it !! Thanks for your help !!!

castana1962 commented 4 years ago

Hi @dylanmpeck I added the right and left controllers and see them very well in the project. To be honest with you, I do not know how to go ahead with it now... I do not know if you are interested in adapting it for Quest or if you have time to do it but if you are, we could work together to make it and like to know better than me this MRTK project maybe you could you add the pointer selection to the Oculus Controllers that I just to add to it. If you are interested in doing it, please let me know and I will send this new Unity project. Thanks for your time Regards Alejandro

dylanmpeck commented 4 years ago

Hey,

I should have documented it better, but the goal with this game was to make it hands free. So, the song selection should work by just looking at the desired song, and the game begins by pedaling. I'm realizing now the hard part may be duplicating our bike setup unless you have experience with that sort of thing. I never made it generic and the current code is expecting to be connected to sensor we were using to calculate "moveSpeed" variable. If you want to just test, you could go into the GameManager.cs script and add something in Update that increases "moveSpeed" on a key press.

Unfortunately, due to Covid Quarantine, I'm in a place where I don't have access to a pc that can handle VR. In a couple months, I'd be happy to look at it and try to make a Quest version, but even with that, you'd have to be able to do the websocket bike setup yourself unless we take the time to make a more elegant solution.

castana1962 commented 4 years ago

Hey there, Please do not worry. I understand your situation. Unfortunately, due to COVID Quarantine we are confining, but in my case, I am surrounded by VR Headset at my house :) and building this VR Health Project. I will look at your GameManager.cs to learn about your project and try to add some code to add this UI interactivity. If you in some time could modify it for Quest, please let me know it. This feature was great for Health purposes. Thanks for your time Have a nice weekend !! Regards Alejandro