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"

Inconsistent behaviour of Reset Orientation and Position in VR Preview mode

I'm having the weirdest problem right now that I can't figure out. I have the following blueprint function to set the location of my player controller and oculus rift rotation to be the same as my player start. This worked great in 4.6. After upgrading to 4.7 I have noticed that this doesn't work in VR Preview... most of the time. Sometimes, after moving a player start (just like move it a meter to the left) it works. And then it doesn't after I move it back and rebuild. Or it works after changing the World To Meters value from 100 to 99.9, and then doesn't work once I change it back. Except sometimes it does.

It works perfectly in 'Standalone Game' mode, but not (well) in VR Preview mode.

So I have two questions:

1) Does anyone have any idea what is going on?

2) What is the correct way to set the direction the oculus rift camera is looking/is there a better way to do it than the blueprint I am using now?

alt text

Product Version: Not Selected
resethmd.jpg (113.0 kB)
more ▼

asked Feb 25 '15 at 09:15 PM in VR

avatar image

15 3 4 7

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

1 answer: sort voted first

The only really working method of reliably changing the viewing direction in VR mode for me is currently

  • On event 'begin play' set 'followHMDOrientation' for camera manager to true (position flag doesn't currently seem work) alt text

  • In player controller, set your camera manager to from 'none' (why is this default?) to playerCameraManager

  • Set input yaw scale to 1 in playerController details (default: 2.5, reason why every rotation value passed to the controller is not correctly translated in to the game by default)

  • Use getPlayerController().setControlRotation() or getPlayerController().addYawInput() to rotate your view

Rotating the pawn directly gives me many problems together with the current VR camera implementation.

Good luck.

more ▼

answered Aug 05 '15 at 11:18 PM

avatar image

1.7k 106 117 232

(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