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"

Why is my centered VR forward direction different between VR previews?

I have a custom VR camera setup, and I'm seeing a weird thing: every time I re-run my game in VR Preview Mode, when I face my computer monitor and do a Reset Orientation and Position, the resulting direction in-game is always different.

It actually looks like the offset each time depends on where I rotated the camera during my last VR Preview. I have a custom pawn class, a subclass of Pawn, and I'm calling Pawn.AddControllerYawInput on tick to pass in values from a gamepad. This rotates the VR playspace along with the pawn. The first time I run VR Preview, the forward direction is exactly in line with the PlayerStart actor, so that's good. If I then rotate 45 degrees to the right, hit ESC to end the VR Preview, then start another VR Preview, I start facing 45 degrees to the left of the PlayerStart direction.

Maybe something is being cached between VR Previews? This feels like a bug, but maybe I'm doing something wrong?

Product Version: UE 4.13 Preview
Tags:
more ▼

asked Aug 08 '16 at 05:19 AM in VR

avatar image

clt2488
275 17 35 37

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

2 answers: sort voted first

I found a way to keep this from happening. I hadn't actually defined a Camera anywhere in my Pawn; when I added one in, this problem went away and my forward direction always lines up in the direction I expect. I guess the editor had been creating a camera for me and maybe wasn't resetting its values between VR Preview runs? Still might be a bug, but at least it's not causing me trouble anymore.

more ▼

answered Aug 08 '16 at 05:21 AM

avatar image

clt2488
275 17 35 37

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

I ran into this problem today. Here's the solution that worked for me, in case anyone stumbles across it.

I had 'Reset Orientation and Position' node set to Orientation, instead of Position. This node might be in the MotionControllerPawn blueprint by default. You can find it in the VirtualRealityBP/Blueprints folder.

Here's how to set the playspace position when putting on the headset and with a button click:

alt text

more ▼

answered Jul 02 '19 at 03:58 PM

avatar image

Snow
142 14 26 30

(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