The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anyone have experience with A-frame?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #250480

    I’m trying to learn A-frame, but I cannot figure out how to get entities to render. I have no problem getting objects like <a-box> or <a-sphere> to render, but if I use an <a-entity> and define its geometry as a primitive nothing shows up.

    Even stranger, if I create an entity in the inspector it works as expected.
    I even tried copy-pasting entities out of example files, but they still won’t work for me. Here is an example:

    Anyone know what I might be doing wrong?


    Move the JavaScript <script> tag for A-Frame to above your scene. CodePen adds it to the bottom of the body by default, which doesn’t work for A-Frame because it uses Custom Elements.


    ok thanks, that’s good to know :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.