Forum Discussion
gabriead
11 years agoHonored Guest
Camer angle of rift shifts on start
Hi there,
I am using the Rift extension and unity 4.5.5 free. I have set up a scene and I need the camera to be on the exact same position every time I run the scene. But every time the camera angle shifts to a random position.There is no script attached to the Camera. How can I make sure that the angle of the camera is at the exact same every time I run the scene?
I am using the Rift extension and unity 4.5.5 free. I have set up a scene and I need the camera to be on the exact same position every time I run the scene. But every time the camera angle shifts to a random position.There is no script attached to the Camera. How can I make sure that the angle of the camera is at the exact same every time I run the scene?
2 Replies
Replies have been turned off for this discussion
- drashHeroic ExplorerThe angle of your Rift cameras is being driven by the Rift itself (and the rotation of the OVRCameraRig transform). If you don't have a process to recenter it after the player has put the Rift on and is facing forward, you will be working with an unpredictable position and orientation that depends on where the Rift was when the program started (on the player's desk to the side, etc).
Solutions including providing the player a way to recenter pose (if you're using "OVR Main Menu", this will be the R key, otherwise you need to call OVRManager.display.RecenterPose() yourself), or guiding the player through the process of recentering so that you know the player is at their "resting state" when you call RecenterPose(). - gabrieadHonored Guest@ drash: thanks a lot for the advice. But a problem remains. I implemented something like
public class ResettingView : MonoBehaviour {
private OVRDevice ovrdevice ;
void Update()
{
if (Input.GetKeyDown ("Keycode.V))
{
OVRDevice.ResetOrientation (0);
}
}
}
What library do I have to include to be able to use OVRDevice?It does not recognise OVRDevice nor ResetOrientation, so I guess it has been renamed in the updated extension.Within the OVR folder I could not fin a function or class that fitted ResetOrientation. All I could find was OVRManager.capiHmd.RecenterPose().Can you help me on how to call the function ?Thanks a lot!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago