Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by learner1988 · Apr 14, 2018 at 08:45 PM · coordinate-systemoptitrack

Align HTC Vive Coordinate with OptiTrack System in Unity

I am working on aligning HTC Vive Controller (for example, right controller) with a rigid body marker which is tracked by Optitrack. Since the coordinate system of both systems are different how can I align these two systems? I am trying to move the rigid body marker similar to the right-hand controller of the htc vive.

Scenario:

I have a unity environment which is viewed using HTC Vive and now I want to have a rigid body marker which is tracked by Optitrack and have to align properly while I move the marker in the environment.

Any suggestions would be very helpful.

Thank you.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jon_Olive · Apr 20, 2020 at 07:34 PM 0
Share

I have a similar issue to you - have you had any luck yet?

It seems to me that the method ought to go something like this: 1. Capture a common point in physical space in each tracking system (system 1 & system 2) 2. Use that info to calculate the transform of the origin of system 2 in the coordinate system of system 1 3. Parent the tracked transform of system 2 to a game object at system 2's calculated origin transform.

Unfortunately - try as I might - I can't seem to figure out the maths either!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jon_Olive · Apr 21, 2020 at 10:02 AM

HI. Further to my comment above - I think I've cracked how to do it.

Essentially the process is indeed as I described above - the key is figuring out the origin of System 2 in the coordinate space of system 1. To do this - capture a common physical point in space with both tracking systems. Then Parent system 2 tracker transform (the one you want to translate) to a gameobject at worldspace origin - then you need to line up sys 2 tracker transform with that of sys 1 in such a way that the parent moves relative to it. The parent transform is then the origin of sys 2 in sys1's coordinate system! I did that with the help of the code in this post: https://answers.unity.com/questions/460064/align-parent-object-using-child-object-as-point-of.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

77 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity is a Left-Handed Coordinate System? Why? 5 Answers

TextMesh Pro characterInfo coordinates 1 Answer

Load notification panel when at a particular location 0 Answers

move sprites in side scrolling 2d game in screen coordinates 0 Answers

How to apply point value on local coordinate system rather than world coordinate system 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges