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"

Get Orientation and Position Bug?

I using BP.

Position Tracking works but using Get Orientation and Position BP and "Get Position"->"Print String" return 0,0,0 "Device Rotation" works fine.

Forum thread: https://forums.unrealengine.com/showthread.php?32060-Device-Position-Bug

Product Version: Not Selected
more ▼

asked Aug 25 '14 at 06:07 PM in Bug Reports

avatar image

158 16 19 29

avatar image [Epic] Gribbs ♦♦ STAFF Aug 25 '14 at 08:19 PM

Howdy knack,

Thank you for reporting this issue. I just need a bit more information from you before I begin investigating. Would you be able to share the blueprint setup that you are using to see this issue? Also, can you provide your project log files and your DXdiag? Any additional information would be greatly appreciated.

Thanks and have a great day!

avatar image Cryect Aug 26 '14 at 01:54 AM

It's a bug that seems to have been intentionally added and it was applied to other HMD's as well seeming to break backwards compatibility by changing the API.

If you look in FOculusRiftHMD::GetCurrentOrientationAndPosition you will find this comment.

 // @TODO: we can't actually return just CurHmdPosition here, it should be rotated by CurrentOrientation.
 // Another problem: if we return rotated position here, we shouldn't apply position in CalculateStereoViewOffset, otherwise the
 // position will be applied twice.
 // Currently, position will be applied automatically in CalculateStereoViewOffset and adjusted on Render Thread by UpdatePlayerViewPoint()

What you will want instead is to have this code here. It makes most sense to return a raw value untransformed for the moment at the least CurrentPosition = LastHmdPosition = CurHmdPosition;

Also the code for positioning the camera has been hard coded as well into CalculateStereoViewOffset which is fine if you want to do it exactly as it's doing but its wrong in several potential cases (its only correct in the case of the only transform on the camera is the HMD rotation plus a translation).

avatar image Cryect Aug 26 '14 at 03:17 AM

Should note you will want the transformed version if you aren't doing anything special with the HMD position that requires the untransformed version.

avatar image knack Aug 25 '14 at 09:48 PM

there is nothing special in my project, anyway i create a new BP first person game,

event tick->print string

for print "Device Position" from "Get Orientation and Position", play standalone-->alt+enter and not work, result its 0,0,0

avatar image knack Aug 27 '14 at 11:45 AM

just a fast test seems work with the latest update.

avatar image knack Aug 27 '14 at 05:46 PM

i check fast and seems work, but was a fast check, at least i not get 0,0,0.

Close if you want when i try with more time if something wrong i reply.

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

1 answer: sort voted first

Hey knack,

Just wanted to check in with you before closing this issue. You are currently able to see the Orientation and Positioning working correctly, right? If not, please do let me know so that I may further investigate.


more ▼

answered Aug 27 '14 at 03:57 PM

avatar image

[Epic] Gribbs ♦♦ STAFF
11.8k 292 14 77

avatar image chanduRP Dec 17 '18 at 06:47 AM

Still I'm getting this problem in HTC VIVE ,I'm Not getting what is the behavior of the "ResetOrientationAndPosition".

(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