Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default camera is not disabled #4262

Closed
Maryasych opened this issue Sep 3, 2019 · 3 comments
Closed

Default camera is not disabled #4262

Maryasych opened this issue Sep 3, 2019 · 3 comments

Comments

@Maryasych
Copy link

Description:

  • A-Frame Version: 0.9.2 (Date 2019-05-06, Commit #f57a1fa)
  • Platform / Device: MacOS 10.12.6 / Chrome 76.0.3809.100, Windows 7/ Opera 63.03368.53
<a-scene scene>
  <a-entity camera id="main-camera" look-controls position="0 5 0">
    <a-entity id="cursorPC" cursor="rayOrigin:mouse;" raycaster="objects: .raycasted"></a-entity>
    <a-entity id="cursorVR" cursor="fuse: true; fuseTimeout: 500;" raycaster="enabled: false; objects: .raycasted" position="0 0 -1" visible="false"
      animation__click="property: scale; startEvents: click; easing: easeInCubic; dur: 150; from: 0.1 0.1 0.1; to: 1 1 1"
      animation__fusing="property: scale; startEvents: fusing; easing: easeInCubic; dur: 1500; from: 1 1 1; to: 0.1 0.1 0.1"
      animation__mouseleave="property: scale; startEvents: mouseleave; easing: easeInCubic; dur: 500; to: 1 1 1"
      geometry="primitive: ring; radiusInner: 0.01; radiusOuter: 0.015"
      material="color: green; shader: flat">
    </a-entity>
    </a-entity>
  <a-sky color="#FFE4C4"></a-sky>
</a-scene>

Знімок екрана 2019-09-03 о 22 04 42
Знімок екрана 2019-09-03 о 22 07 25

@dmarcos
Copy link
Member

dmarcos commented Sep 3, 2019

Not sure what the problem is. Default camera with provided HTML is not present: https://glitch.com/edit/#!/curvy-crustacean

@Maryasych
Copy link
Author

Maryasych commented Sep 4, 2019

Sorry, it was in fiddle but now its not. Now bug present only in Angular 8.2 project. My decision is

document.querySelector('a-scene').addEventListener('loaded', function () {
      this.camera.el.setAttribute('camera', 'active: false')
    })

@ngokevin
Copy link
Member

ngokevin commented May 26, 2020

The default camera is not removed and the camera specified is not used, regressed as of 0.9.2: https://glitch.com/~aframe-gallery

I changed to to <a-camera> and it works now. Before my <a-entity id="camera" camera> was not used.

dmarcos added a commit to dmarcos/aframe that referenced this issue Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants