Vizi icon indicating copy to clipboard operation
Vizi copied to clipboard

Update loaders to support new gltf naming.

Open klokoy opened this issue 11 years ago • 1 comments

gltf has changed the naming of the files from json to gltf and I have no luck loading then with the Vizi.Loader. Please update loader to support new gltf naming.

It also seems like the path property has changed to uri.

#old json format
>cat Duplex.json | grep path
            "path": "Duplex_A_20110907.bin",
            "path": "Duplex_A_201109070FS.glsl",
            "path": "Duplex_A_201109070VS.glsl",
            "path": "Duplex_A_201109071FS.glsl",
            "path": "Duplex_A_201109071VS.glsl",

#new gltf format
>cat Duplex.gltf | grep uri
            "uri": "Duplex_A_20110907.bin"
            "uri": "Duplex_A_201109070FS.glsl"
            "uri": "Duplex_A_201109070VS.glsl"
            "uri": "Duplex_A_201109071FS.glsl"
            "uri": "Duplex_A_201109071VS.glsl"

I am not quite sure if changes are needed in threejs also?

klokoy avatar Oct 11 '14 17:10 klokoy

how to update loader to support new gltf naming?

windofred avatar Sep 21 '16 02:09 windofred