x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to Get Oculus Sensor Rotation or HMD Rotation Relative to the Sensor

I am currently developing a game to run our 2DOF Full 360 degree simulator with Oculus Rift. But I am having some problem to get Oculus work in the rotating simulator. This simulator can rotate infinetly on pitch and roll axes. I also mounted Oculus Sensor and HMD to this simulator. When the simulator rotates the camera also rotates following the HMD orientation of course. I've thought Oculus tracks HMD orientation relative to the sensor but it doesn't. It gives World Rotation of the HMD. I've confirmed that using UHeadMountedDisplayFunctionLibrary::GetOrientationAndPosition(); which gives location of HMD relative to the sensor but orientation on world space. I couldn't find any function in the APı to get the sensors rotation or HMD's rotation relative to the sensor.

The game camera is actually attached to an actor which is rotating so it follows the the actor rotation. I just want to set it's relative rotation as HMD's rotation relative to the sensor. So camera can simulate the user's head rotation which is about (+/- 20 degrees on each axis max) while it is following the Actor's orientation which the camera attached.

Can you help me on this. I also asked this question to the Oculus Developer forum.

Product Version: UE 4.21
Tags:
more ▼

asked Feb 14 '19 at 01:39 PM in C++ Programming

avatar image

cahitburak
94 7 10 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I've fixed my issue by calculating rotation of the Oculus relative to the simulator since I know both of their world rotation.

more ▼

answered Apr 20 '19 at 06:57 AM

avatar image

cahitburak
94 7 10 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question