Forum Discussion
sea52020
9 years agoHonored Guest
Is it possible to disable all tracking?
Hi,
I've spend couple days trying to find a way to disable all tracking from the HMD(so extend display mode?), but could not get a working method so far. By all tracking i mean both position and rotation, where position is simple, current SDK provide that toggle directly.
I'm using Unity 5.4.0f1 as of today, and testing on both DK2 and CV1.
So far I've tried every method I could find via google and forums, nothing seem to work including tricks like "zero out" rotations each frame.
Using Unity's build-in camera system does not seem to allow any control of camera at all, and the OVR camera rig does not provide such function directly. I also tried the timewarp methods and it's not/no longer working.
For now I'm going to take a deeper look at the camera rig and see if i could come up with something.
Researched on this for days and saw all methods were for 0.6 and earlier, or everyone turned to argue about the "uncomfortable experience" by disabling the tracking, which is out of the scope in my situation.
For those of whom interested in providing evidence of "uncomfortable experience", I want to achieve this because I'm using external tracking system, which provides better information than the HMD's.
Having both the HMD and external tracking system makes the rotation "doubled".
I'm not sure if i should post this in Oculus forum or Unity's, so maybe I'd to create a duplication over there later today if it remains unanswered..
Thank you and everyone in advance.
I've spend couple days trying to find a way to disable all tracking from the HMD(so extend display mode?), but could not get a working method so far. By all tracking i mean both position and rotation, where position is simple, current SDK provide that toggle directly.
I'm using Unity 5.4.0f1 as of today, and testing on both DK2 and CV1.
So far I've tried every method I could find via google and forums, nothing seem to work including tricks like "zero out" rotations each frame.
Using Unity's build-in camera system does not seem to allow any control of camera at all, and the OVR camera rig does not provide such function directly. I also tried the timewarp methods and it's not/no longer working.
For now I'm going to take a deeper look at the camera rig and see if i could come up with something.
Researched on this for days and saw all methods were for 0.6 and earlier, or everyone turned to argue about the "uncomfortable experience" by disabling the tracking, which is out of the scope in my situation.
For those of whom interested in providing evidence of "uncomfortable experience", I want to achieve this because I'm using external tracking system, which provides better information than the HMD's.
Having both the HMD and external tracking system makes the rotation "doubled".
I'm not sure if i should post this in Oculus forum or Unity's, so maybe I'd to create a duplication over there later today if it remains unanswered..
Thank you and everyone in advance.
13 Replies
- cyberealityGrand ChampionSo, I would highly recommend NOT disabling head-tracking, as that will cause users to become uncomfortable. But if you must do it, see the code below.
Just put that script on an empty GameObject, and make the camera a child of that. If you have your own head-tracking solution, then create one more parent empty, and use your alternate tracker to control that.using UnityEngine;
using System.Collections;
public class DisableTracking : MonoBehaviour {
private Camera cam;
private Vector3 startPos;
void Start () {
cam = GetComponentInChildren<Camera>();
startPos = transform.localPosition;
}
void Update () {
transform.localPosition = startPos - cam.transform.localPosition;
transform.localRotation = Quaternion.Inverse(cam.transform.localRotation);
}
} - metal-crowHonored GuestI'm trying to do the same thing in C++ (basically https://forums.oculus.com/community/discussion/comment/242286 but not unity), and haven't had any luck so far. I'd like to disable tracking instead of just having the quad move with the head rotation, because since i want this to be a realtime application any cpu time i can save i would like to.
If someone could explain how to do this, preferably with a sample, that'd be incredibly helpful. - speeder84ExplorerEDIT: I made it and it was pretty easy, just the fact of being newbie with Unity makes it a little bit hard. DisableTracking.cs works correctly, and to make the camera a child of another object just take it in the hierarchy window and drag it to the object, as simple as that. Thanks to the Admin
- speeder84ExplorerI'm tracking all this info for kind of similar applications, reading documentation about quaternion, if someone could explain with a sample i'd be incredibly helpful to make it a clear and fast way =). Regards
EDIT: I made it and it was pretty easy, just the fact of being newbie with Unity makes it a little bit hard. DisableTracking.cs works correctly, and to make the camera a child of another object just take it in the hierarchy window and drag it to the object, as simple like that. Thanks cybereality - WerkschmiedeExplorerI´m not a coder! But i need to disable the native CV1 tracking and exchange it with TrackIR 5.
May someone did this already? Special Unity Version avaible? Or is it possible to use the CAM for tracking roll,yaw, pitch and disable all HMD sensors? - Fuby1000ProtegeWhile this works it doesn't seem to be "clean". Right now I'm using the CV1`s orientation, while I want to use a motion capturing system for the position (since I want to use extnsion cables so I can increase the area the CV1 works in). The position seems to be quite off, though. Could this problem be related to the code or the CV1? Or is it related to the mocap system?
- roetkaExplorer
Werkschmiede said:
I´m not a coder! But i need to disable the native CV1 tracking and exchange it with TrackIR 5.
May someone did this already? Special Unity Version avaible? Or is it possible to use the CAM for tracking roll,yaw, pitch and disable all HMD sensors?
Right now there doesn't seem to be a working solution to deactivate the tracking sensors (Gyro) of the HMD.
I need this too, but currently got no working result for this. - LauraGlez168Honored GuestSorry I'm new to this development for Oculus Rift but I would like to know what kind of camera you used to be displayed in Oculus Rift. I use the OVRPlayerController but I still can not get the tracking completely disabled. I just want to always keep the camera in the same position. Somebody could help me?.
- PARTYW00TExplorer
speeder84 said:
I'm tracking all this info for kind of similar applications, reading documentation about quaternion, if someone could explain with a sample i'd be incredibly helpful to make it a clear and fast way =). Regards
EDIT: I made it and it was pretty easy, just the fact of being newbie with Unity makes it a little bit hard. DisableTracking.cs works correctly, and to make the camera a child of another object just take it in the hierarchy window and drag it to the object, as simple like that. Thanks cybereality
I need your help. I'm trying to do exactly what you describe, as a consumer.
I want to disable tracking on the hmd, and either link the camera to a tracked object a-la third controller for mixed reality filming or link it to positional data from driver4vr and rotational data from riftcat.
could I make this happen with no experience dealing with unity? - PARTYW00TExplorer
speeder84 said:
I'm tracking all this info for kind of similar applications, reading documentation about quaternion, if someone could explain with a sample i'd be incredibly helpful to make it a clear and fast way =). Regards
EDIT: I made it and it was pretty easy, just the fact of being newbie with Unity makes it a little bit hard. DisableTracking.cs works correctly, and to make the camera a child of another object just take it in the hierarchy window and drag it to the object, as simple like that. Thanks cybereality
I need your help. I'm trying to do exactly what you describe, as a consumer.
I want to disable tracking on the hmd, and either link the camera to a tracked object a-la third controller for mixed reality filming or link it to positional data from driver4vr and rotational data from riftcat.
could I make this happen with no experience freaking with unity?
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
- 2 years ago