gltf file not showing in Aframe

前端 未结 1 753
暖寄归人
暖寄归人 2021-01-24 11:52

I have two files, an glTF and OBJ file. I\'m using Glitch to develop and I uploaded both of them to my assets folder.

When I read my marker, only the OBJ file is displa

相关标签:
1条回答
  • 2021-01-24 12:30

    If you open up the .gltf file - you will find the .bin and textures are referenced with relative file paths.

    The glitch "assets" folder is not a real directory - the files within have different paths, that possibly are nowhere near each other.

    Try:

    1. Converting your model to .glb which just contains all resources and dependancies
    2. Throwing the model on a github repository, where paths are relative
    3. Editing the .gltf file by replacing the .bin, and texture paths with glitch asset links.
    0 讨论(0)
提交回复
热议问题