Skip to main content

Forums

This topic contains 2 replies, has 2 voices, and was last updated by  bearhead 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #250480

    bearhead
    Participant

    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:

    http://codepen.io/kvana/pen/WREYLX

    Anyone know what I might be doing wrong?

    #250574

    andgokevin
    Participant

    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.

    #250577

    bearhead
    Participant

    ok thanks, that’s good to know :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star