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 the real position of my Oculus VR

Hello everyone,

I have an issue with my first VR game. I the Oculus Rift and when I start my game, the camera's position is at the same level then the floor. I would like to position the camera like in the real world. The idea is to take the information of the Oculus like player's height, rotation, etc and to make a function node who returns the good informations to put the camera at the good place even when the start position of my Oculus helmet.

I've tried a lot of things and I really don't know how to do that. I start with UE4.

Thanks very much !

PS: I'm sorry for my English

Product Version: UE 4.17
more ▼

asked Oct 05 '17 at 02:00 PM in VR

avatar image

3 2 5

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

1 answer: sort voted first

This may be due to the Template having a bug on the HMD Device name switch. If you go to your Pawn (Or try to find where GetHMDDeviceName is used) - It will use a switch with 'Oculus Rift' - This needs to be changed to 'Oculus HMD'.

See - https://forums.unrealengine.com/development-discussion/vr-ar-development/1363108-having-trouble-with-oculus-rift-and-vr-template

more ▼

answered Oct 06 '17 at 01:47 PM

avatar image

1.9k 53 40 200

avatar image Sparky783 Oct 09 '17 at 07:19 AM

Thank you for your anwser !!! =) That work correctly now ! I just add "OculusHMD" in the "SwitchOnName" node

alt text

bp-player.jpg (162.5 kB)
(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