aframevr / aframevr/aframe

Negative scale doesn't work since v0.8.0

Open
#4,843 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

  • v.0.8.0 - v1.2.0:
  • Platform / Device: Glitch; Linux Manjaro
  • Reproducible Code Snippet or URL:
<a-scene>
    <a-entity camera look-controls wasd-controls scroll-controls position="0 0 3">
    </a-entity>
    <a-entity geometry="primitive: box; radius: 3"
        material="color:#FF0099"
        scale="-2 2 2">
        <a-sphere color="#FF0000"
                  scale="0.2 0.2 0.2">
        </a-sphere>
    </a-entity><
</a-scene>

v0.7.0 gives the following result:
image

v1.2.0 gives the following result:
image

The documentation for v1.2.0 still says: "scaling factors can be negative, which results in a reflection."

It only worked when I dropped my version number to 0.7.0

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

Run the provided A-Frame HTML snippet on v0.7.0 and v1.2.0 to reproduce the differing negative-scale behavior. Read the v1.2.0 scale component documentation and compare the results; done means negative scaling again produces the documented reflection in the current version.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
ar-vr-xr, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.