steve69 Posted February 18, 2020 Share Posted February 18, 2020 Hi there,would like to measure the distance between two trackers.Place two trackers on the floor at a distance of X cm from each other.In Unity (SteamVR + ViveInputUtility) I use the function1. Vector3.Distance (Tracker1.position, Tracker2.position) Distance -> Result 1m -> 4,250 0.5m -> 3,904 0.25m -> 3.748 2. Vector3.Distance (Tracker.position.z, Tracker.position.z) Distance -> Result 1m -> 3.44 0.5m -> 3.04 0.25m -> 2.84What do these numbers tell me now?I don't understand that!I am currently using a configuration without HMD.Do I have to calibrate the system somehow (room measurement) so that I get meaningful values? Strangely enough, the trackers are very far below my floor. Funny too!Thank youStephan @chengnay Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted February 21, 2020 Share Posted February 21, 2020 @steve69 I will need time to test this out, I had never tried without HMD. Or are you able to try with HMD and see if you are getting the right distance value? Link to comment Share on other sites More sharing options...
steve69 Posted February 23, 2020 Author Share Posted February 23, 2020 Will try the HMD next week.If you want to try it without an HMD, here is a good description. http://www.pencilsquaregames.com/getting-steamvr-tracking-data-in-unity-without-a-hmd/ I use SteamVR 1.9.16 Link to comment Share on other sites More sharing options...
steve69 Posted February 24, 2020 Author Share Posted February 24, 2020 After I had to reinstall my computer, the values are strangely as expected.Mmmm, I don't know what happened there.Guess that solved my problem by itself.Thanks anyway for your help. Stephan Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted February 25, 2020 Share Posted February 25, 2020 Great to hear that, feel free to ask questions when you need help 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now