A-frame texture loading problems

1 day ago 1
ARTICLE AD BOX

Firstly make sure you run a local server can do this by installing live server extension then right-click your HTML file then Open with Live Server

Secondly make sure your file arrangement is correct example

project/ ├── index.html └── assets/ └── model/ ├── scene.gltf ├── scene.bin └── textures/ ├── texture1.png └── texture2.png

HTML should reference it like this for example

<a-asset-item id="my-model" src="assets/model/scene.gltf"></a-asset-item>

Thirdly you can try GLB since it bundles into one file texture path issues should go away

<a-assets> <a-asset-item id="my-model" src="assets/model/scene.glb"></a-asset-item> </a-assets> <a-entity gltf-model="#my-model" position="0 1.5 -3"></a-entity>

If it still shows 404 might be a server issue try it again once Live Server is running.

Shantanu Gupta's user avatar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Read Entire Article