Hello everyone,
Just tried out the (awesome) Rift integration in 5.1, but i have no idea how to enable positional tracking. Any clues?
Hello everyone,
Just tried out the (awesome) Rift integration in 5.1, but i have no idea how to enable positional tracking. Any clues?
Set VRSettings.enabled = true;
you also need to enable “virtual reality supported” in player settings.
All normal cameras will then be rotated and moved relative to the oculus movement sensor.
I did enable vr support in the player settings, but that only resulted in rotational tracking. VRSettings.enabled also changes nothing, positional tracking is still not working.
Is positional tracking working in the Oculus Config Utility’s “Show Demo Scene” ? As LennartJohansen says, cameras will receive positional and rotational updates by default.
Yes, demo scene works just fine. The last demos i tried worked fine too, although i haven’t tried a lot with SDK 0.6 yet. If it should work, maybe i should just try reinstalling the runtime and unity.
I’m not really sure about this, but to get the translational stuff you might need to make the camera a child of another game object. An idea to try anyway if nothing else is working.
Yeah, i thought of that too, but it didn’t work out D:
Reinstalling the runtime and unity also did nothing.
Not sure what else i can try.
Thought I had the same problem. Then realized that I was testing in a cartoony scene we built that had no relation to real world scale. i.e. the scale was crazy big, and I just couldn’t see the positional changes.
Try with an new empty scene, with some default size boxes (1x1x1meter).
I actually made a new blank project to play around with the new rift integration, so that should not be an issue.
Are you using a DK1 or DK2?
DK2, otherwise positional tracking would not make much sense, right? ![]()
Exactly, lol. So you are getting all of the Rotational data, but just the positional tracking isn’t working. Try making the camera a child of a new object. Do you receive any warning or error messages in your Editor log?
Ok, so apparently after 2 days of un-/reinstalling everything related to unity and the rift, the problem fixed itself.
Can’t really say what it was though. Everything i did, i tried at least 3 times, without any success on the earlier attempts. The only other factors in between were a full pc crash without any cause in the windows event log, and a few recalibrations of my leap motion.
I have this issue as well. A new project with latest version of both Unity and Oculus SDK. No positional in my project but it works fine in Oculus calibration tool. I guess I will try reassembling things to recover it.
Unfortunately we haven’t seen this issue and we do not have any bug reports that display the issue. If you can reproduce it, it would be worth either sending in a bug report or reviewing the Editor log yourself to see if there are any noticeable errors that are logged.
We are also experiencing this, especially when running Unity VR application over longer periods of time.
Also both positional tracking and head tracking freezes - resulting in a frozen image inside the rift (this also when running applications for a longer period of time).
We have experienced this consistently on all drivers (oculus and NVidia) and Unity versions since april 2015 up ontil todays available versions.