I’m pretty newbie in developping gear VR applications, so i really need help about the procedure to create a Gear VR app from 0.
Currently, I have my terrain, and the Occulus Utilities 5 in my project.
When i use a standard camera, a OVRCameraRig or OVRPlayerController I succeed to get the camera following head orientation (obviously, it’s automatic…), but after that i can’t move the camera with the DPad…
What is the procedure (prefab to use, scripts to attach, modify) to get this working and get my camera following head rotation AND touchpad swipes (can be with OVR Utilities or without)? I didn’t really found something really complete about this (documentation seems to be … fuzzy to me)
I only want to use the integrated touchpad of the GearVR.
A couple of notes from when I implemented this in my asset in my signature.
You cannot move the camera transform directly (HMD has full control). If you want movement create a parent object for the camera and move that.
I don’t think there is a provided script for this in the utilities. That being said simply move the parent object along the camera’s forward transform and right transform based on the values from the touchpad.
so I understood that I have to use one of the OVR prefab (which one is advised ? OVRPlayerController or CameraRig ? ) and encapsulated this in an empty game object. This is this last one I will move by getting his transform right ?
Which script has to be used to get the button touched ?
I can’t speak for the prefabs I usually don’t use them but the concept is the same. I believe you could parent either but that parent is going to need a reference to the actual camera so it can move in that direction instead of it’s own direction.
If your looking for premade script in the Oculus SDK to do all of this I don’t think there is one, I’m just speaking for how I created mine for my asset. In general you get the position on the touchpad by using the OVRInput class on the primary touchpad. At a minimum this does require that OVRManager be somewhere in your scene.
I finally made this working but not using the “primary touchpad”…OVRMAnager script was attached to the camera/player but never detects…So finally used the mouseX from Input directly…Hope that way is not so…“newbie” or unstable…
thanks
EDIT : seems that with the GEAR VR for Galaxy S6 (not the most recent so…) do’esn’t work correctly with the utilities. Even trying detecting press, swipe, taps fails.