Import glTF texture

I am trying to use a glTF with its texture.
I have uploaded the three files (gltf, bin and texture) to the assets. I have copied its url and loaded it but neither the object nor the texture appears. What am I doing wrong?. My code is the following:

<a-scene>
  <a-assets>
    <a-asset-item
      id="casa"
      src="https://cdn.glitch.com/59e08b2b-131a-4507-abdb-9fbaf714b589%2Fscene.gltf?v=1617619275790">
    </a-asset-item>
    <a-asset-item>
      id="textura_casa"
      src="https://cdn.glitch.com/59e08b2b-131a-4507-abdb-9fbaf714b589%2Ftextura.jpeg?v=1617619503526"
      </a-asset-item>
  </a-assets>

  <a-entity>
    <a-camera wasd-controls="acceleration:10000"></a-camera>
  </a-entity>

  <a-entity gltf-model="#casa" normal-map="#textura_casa"> </a-entity>
    
</a-scene>

I would recommend using wget to download the files you need- as the CDN could possibly have problems.

Grab the links and in your project console run:

wget replacemewithcdnurl

This will download the files into your project, change the links your using to import to the file path. Not much of a solution but a tip!

Thank you!!!

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.