Allow arbitrary file extensions (e.g. `.vrm`)
Matt Rossman
I often inspect VRM files. Internally these are regular glTF-Binary files, but they use a
.vrm
file extension. Each time I want to inspect them with gltf.report, I first need to rename the file to .glb
or it won't be recognized. This is inconvenient because I also use these files in other software that expects a .vrm
extension.Perhaps try/catch loading the file as binary and/or JSON glTF before showing this error.
D
Don McCurdy
Would a .vrm file always be equivalent to a .glb? Or do you know if it could contain raw JSON like a .gltf file instead?
Matt Rossman
Don McCurdy:
.vrm
will always be equivalent to a .glb
References:
- VRM 0.0 - https://github.com/vrm-c/vrm-specification/blob/master/specification/0.0/README.md#file-extension
- VRM 1.0 - https://github.com/vrm-c/vrm-specification/tree/master/specification/VRMC_vrm-1.0#format-and-extension
D
Don McCurdy
Matt Rossman: I see – thank you!