Skip to content

Entities attached to camera not parsed correctly (potential regression in 1.6.0) #5537

@floe

Description

@floe

Description:

I've just upgraded my code from 1.4.2 to 1.6.0 and noticed that my camera-relative "avatar head" isn't properly parsed anymore. The code snippet is below; when I use this code (which worked nicely on 1.4.2) with 1.6.0, then I get the following console warnings:

core:component:warn Unknown property `width` for component `geometry`. [common.js:113:9]
core:component:warn Unknown property `height` for component `geometry`. [common.js:113:9]
core:component:warn Unknown property `depth` for component `geometry`. [common.js:113:9]
core:component:warn Unknown property `color` for component `material`. [common.js:113:9]
core:component:warn Unknown property `height` for component `geometry`. [common.js:113:9]

(The avatar head is supposed to be only visible in external cameras, obviously, but those seem to be broken as well. In any case, if I put the <a-entity avatar ... block outside of the camera, then it is rendered correctly.)

  • A-Frame Version: 1.6.0
  • Platform / Device: Firefox 126
  • Reproducible Code Snippet or URL:
<a-entity camera="active: true" look-controls wasd-controls position="0 1.6 0">
   <a-entity avatar position="0 0 0.3" rotation="0 180 0" scale="2 2 2">
      <a-entity geometry="primitive: box; width: 0.2; height: 0.2; depth: 0.2" material="color: blue" position="0 0 0"></a-entity>
      <a-entity geometry="primitive: cylinder; height:0.001; radius: 0.02" material="color: white" position=" 0.05 0.05 0.1" rotation="90 0 0"></a-entity>
      <a-entity geometry="primitive: cylinder; height:0.001; radius: 0.02" material="color: white" position="-0.05 0.05 0.1" rotation="90 0 0"></a-entity>
      <a-entity geometry="primitive: cylinder; height:0.1; radius: 0.05" material="color: white" position="0 -0.03 0.05" rotation="60 0 0" id="mouth"></a-entity>
   </a-entity>
</a-entity>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions