Skip to content

Update loaders to support new gltf naming. #8

@klokoy

Description

@klokoy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions