Adding a camera to an embedded A-Frame scene incorrectly renders the camera's aspect ratio
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Adding a camera to an embedded A-Frame scene incorrectly renders the camera's aspect ratio.
The camera's aspect ratio can be fixed by manipulating the window via an action such as resize, open console etc...
- A-Frame Version: 0.7.0
- Platform / Device: PC Windows
- Reproducible Code Snippet or URL:
I simulated this by adding a camera to a loaded scene a few seconds after it loads.
https://glitch.com/edit/#!/boulder-viscose
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Glitch reproduction and reproduce adding a camera several seconds after the embedded scene loads. Compare the camera aspect ratio before and after a resize or console interaction; the issue is done when the dynamically added camera renders with the correct aspect ratio without that manual trigger.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100