aframevr / aframevr/aframe

Initial camera rotation incorrect (Chrome/Android)

Open
#3,650 25 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mobile
Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

Description:

The initial/default camera rotation seems to be wrong since an update to Chrome/Android. As seen in the example, the camera should face the logo at the start (which it does on desktop). However on the device specified below the camera faces 180 degrees.

Side note - is there a 'look at' type method for the camera that would correct this for me in the short term?

  • A-Frame Version: 0.8.2
  • Platform / Device: Chrome 67.0.3396.87 / Android 8.0.0 / OnePlus 3T
  • Reproducible Code Snippet or URL: https://www.homerandfarley.com/

screenshot_20180618-124929

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the camera orientation at https://www.homerandfarley.com/ with A-Frame 0.8.2 on Chrome 67 running on Android 8.0 and compare it with desktop behavior. Trace the initial camera setup and device-orientation handling, then verify that the camera faces the logo at startup on the reported device without regressing desktop behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.