React-360: Device orientation is not working on a new empty project

Created on 12 Sep 2019  路  5Comments  路  Source: facebookarchive/react-360

Description

This is a bug.
Creating a new empty project with

react-360 init TestProject 
cd TestProject
yarn run start

Expected behavior

Navigating to the test project with a phone
And "looking" around by moving the phone around should pan the 360 world.

Actual behavior

Nothing happens,
Only dragging with finger will pan the world.

Reproduction

Above

Solution

I can see there is support in the DeviceOrientationCameraController, i do not know what else is needed.

Additional Information

  • 'react-360' package version: 1.1.0
  • 'react-360-web' package version: 1.1.0
  • Operating System: MacOS but Android 9 for tests
  • Browser: Chrome 75
  • VR Device: NO, just phone

Most helpful comment

Yep! Works on Firefox annoyingly. I looked into the DeviceOrientationCameraController and when I log out the 'enabled' flag it is false. For some reason it comes to the conclusion that my Chrome browser is not supported.

All 5 comments

Any update?

Are you having the same issue?

Yep! Works on Firefox annoyingly. I looked into the DeviceOrientationCameraController and when I log out the 'enabled' flag it is false. For some reason it comes to the conclusion that my Chrome browser is not supported.

I麓m having the same trouble, do you know how can i fix it?
Thanks!

Hi!
I麓ve "fixed" this, using https connection in (for example) Firebase Hosting (you can try it also with Glitch or an dedicated server). It seems like Chrome it麓s blocking VR API due to low security connection.
In Safari it麓s already not working...I麓ve to do more tests.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stu60610 picture stu60610  路  4Comments

ryanf12 picture ryanf12  路  3Comments

nikgraf picture nikgraf  路  3Comments

danbugs picture danbugs  路  3Comments

aziliak picture aziliak  路  3Comments