-2

Having looked through all the documentation, I found a method that allows me to get the angle of view VrWidgetView docs

getHeadRotation(float[] yawAndPitch)

I need then to save it and apply at the next launch of video. Any way that it can be set programatically? Thanks in advance.

Update: Actually that method returns void. And I can't even see any difference when using it with different yaw and pitch values. So I need to know how to both get and set the rotation values.

Update 2: it is hilarious but only now I found out that the values are actually written to parameter instead of returning them. So I can get them, but don't see how I can apply them.

Roman Samoilenko
  • 932
  • 12
  • 25

2 Answers2

0

Not sure this can be considered a full answer, in case I can move it to a comment.

According to this Google VR issue such component will not be extended to give this type of complex features.

Google official suggestion is to look at the Video360 Sample as a starting point, and get your hand dirty.

superjos
  • 12,189
  • 6
  • 89
  • 134
-1

I think setting the head rotation in VR is a big no. It is very unnatural, it can cause nausea and provides a very bad experience. If you need to set a starting rotation, you should probably go with rotating the world.

gilgil28
  • 540
  • 5
  • 12
  • Imagine a device in VR hub standing in public. Everybody could use it, rotate and leave it with that angle. When the content updates it becomes recentered again, but there is wrong angle from that moment. That's why I need to set angles. This is also needed in moving things like cars etc – Roman Samoilenko Jan 17 '17 at 10:40