[x3d-public] glTF files end in .gltf and .glb (binary)

Michalis Kamburelis michalis.kambi at gmail.com
Fri Feb 4 10:35:38 PST 2022


Indeed, glTF files should have .gltf or .glb extensions. (See
https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#file-extensions-and-media-types
, """JSON glTF files SHOULD use .gltf extension and model/gltf+json
Media Type."""")

While .gltf is also valid JSON, using a generic .json extension for
them feels "unnecessarily generic". It would be like using .xml
instead of .x3d for models in X3D XML encoding.

That being said, why do you validate with X3D JSON schema all *.json?
Shouldn't X3D JSON also have a specific extension, not use generic
.json?

Regards,
Michalis

pt., 4 lut 2022 o 18:21 John Carlson <yottzumm at gmail.com> napisał(a):
>
> I believe glTF files end in .gltf and .glb (binary), not .json.   Please confirm and update glTF .json files found in archives.  See files below in X3dForAdvanceModeling.   They do no pass X3D JSON schema.
>
> Thanks, John
>
> $ grep file: results.txt |grep -i /gltf|sort -u
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AntiqueCamera.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AttenuationTest.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/DamagedHelmet.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/DragonAttenuation.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/GlamVelvetSofa.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/Lantern.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/Suzanne.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/ToyCar.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/TransmissionTest.json
>  file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/WaterBottle.json
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org



More information about the x3d-public mailing list