aframevr / aframevr/aframe

Doesn't render background on mobile out of vr in some cases

Open
#3,331 2 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:
A-Frame doesn't seem to render background (whether it's a-sky or cubemap sky, it doesn't matter) when there are no other entities present to render. It happens only on mobile. You can reproduce it in the given URL on mobile device (I use Chrome on mobile). Steps to reproduce:

  1. Drag to a view where no boxes are present
  2. Enter VR Mode
  3. Exit VR Mode

If you exit VR with entities present on screen, everything will render as expected.
If you enter and exit VR when no boxes are present, it will show white screen - no backround. If the screen is white you can drag to a place where entity should be shown, it will finally render everything.
No demos from https://aframe.io/ have this issue since there is always default cursor present on screen.

Temporary fix I use for my demos is very distant, small entitity as a child of camera.

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

No source file or test is named. Start by opening private-scent.glitch.me in Chrome on a mobile device and reproduce the VR enter/exit sequence with and without visible boxes; done means the background renders after exiting VR in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.