steve69 Posted February 18, 2020 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
VIVE_chengnay Posted February 21, 2020 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?
steve69 Posted February 23, 2020 Author 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
steve69 Posted February 24, 2020 Author 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
VIVE_chengnay Posted February 25, 2020 Posted February 25, 2020 Great to hear that, feel free to ask questions when you need help 🙂
Recommended Posts
Archived
This topic is now archived and is closed to further replies.