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

[loaders] model a-asset-item support #160

Open
7dir opened this issue Jul 16, 2017 · 4 comments
Open

[loaders] model a-asset-item support #160

7dir opened this issue Jul 16, 2017 · 4 comments
Labels

Comments

@7dir
Copy link
Contributor

7dir commented Jul 16, 2017

https://aframe.io/docs/0.6.0/components/collada-model.html

<a-scene>
  <a-assets>
    <a-asset-item id="tree" src="/path/to/tree.dae"></a-asset-item>
  </a-assets>
  <a-entity collada-model="#tree"></a-entity>
</a-scene>
@donmccurdy
Copy link
Collaborator

What do you mean? Is this asset syntax not working with a loader in this repo?

@7dir
Copy link
Contributor Author

7dir commented Jul 16, 2017

yeah
not working

            <a-assets>
                <a-asset-item id="flower" src="flower/flower.json"></a-asset-item>
            </a-assets>

            <a-entity
                        object-model="#flower"
                        position="0 0.1 -3"
                        rotation="0 0 0"
                        scale="0.5 0.5 0.5"
                        animation-mixer="clip: default;"
            >
            </a-entity>

@7dir
Copy link
Contributor Author

7dir commented Jul 16, 2017

it`s work

            <a-entity
                        object-model="src: url(/flower/flower.json);"
                        position="0 0.1 -3"
                        rotation="0 0 0"
                        scale="0.5 0.5 0.5"
                        animation-mixer="clip: default;"
            >
            </a-entity>

@donmccurdy donmccurdy added the bug label Jul 17, 2017
@donmccurdy donmccurdy changed the title model a-asset-item support [loaders] model a-asset-item support Nov 22, 2018
@netgfx
Copy link
Contributor

netgfx commented Oct 20, 2020

@7dir If you check this: https://glitch.com/~hickory-sand-liver is working

<a-assets>
        <a-asset-item
          id="golem"
          src="https://netgfx.com/trunk/CORS/golem/scene.gltf"
        ></a-asset-item>
        <a-asset-item id="goblin" src="https://netgfx.com/trunk/CORS/source/scene.gltf"></a-asset-item>
      </a-assets>

then

<a-entity
        id="bot"
        cursor-listener
        scale="0.5 0.5 0.5"
        position="0 0 -6.5"
        rotation="0 0 0"
        animation-mixer="clip: IdlePieces;timeScale: -2.5;clampWhenFinished:true;repetitions:1;"
                
        gltf-model="#golem"
      ></a-entity>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants