Tool to validate glTF assets.
Validation is performed against glTF 1.0.1 draft with asset.version check disabled.
Validator outputs a validation report (in JSON-format) with all found issues and asset stats.
Live drag-n-drop tool (beta): http://github.khronos.org/glTF-Validator
- JSON syntax check
- All properties and their types from JSON schemas (including limitations on valid values).
- Validity of internal
idreferences. - Object-specific checks (compatibility of interlinked dictionaries, property combinations, etc).
- Correctness of
Data URIencoding. .glbfile format fromKHR_binary_gltfextension.
Due to frequent updates, it's recommended to use hosted web front-end tool. It works completely in the browser without any server-side processing.
- Download and install Dart SDK for your platform.
- Add Dart SDK
binfolder to your PATH (more info here). - Add packages
binfolder to your PATH (~/.pub-cache/binfor Linux and Mac;%APPDATA%\Pub\Cache\binfor Windows).
- Clone this repository,
masterbranch. - From the repository root folder, run
pub getto get dependencies. - Run
pub global activate --source path ./to add Validator executable to your PATH.
Run gltf_validator <asset-file>. JSON report will be printed to stdout.
