Tool to validate glTF assets.
Dart CSS HTML
Permalink
Failed to load latest commit information.
bin json output Jul 23, 2016
lib Fix null asset crash, update expected version Dec 4, 2016
tool all implicit casts sorted out Sep 18, 2016
web tighten maps, fix small log path bugs Jul 25, 2016
.analysis_options all implicit casts sorted out Sep 18, 2016
.gitignore Initial public commit Jul 22, 2016
ISSUES.md
LICENSE Initial public commit Jul 22, 2016
README.md
pubspec.yaml

README.md

glTF-Validator

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

Implemented features

  • JSON syntax check
  • All properties and their types from JSON schemas (including limitations on valid values).
  • Validity of internal id references.
  • Object-specific checks (compatibility of interlinked dictionaries, property combinations, etc).
  • Correctness of Data URI encoding.
  • .glb file format from KHR_binary_gltf extension.

Usage

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.

Command-line tool

Installing

Prerequisites
  1. Download and install Dart SDK for your platform.
  2. Add Dart SDK bin folder to your PATH (more info here).
  3. Add packages bin folder to your PATH (~/.pub-cache/bin for Linux and Mac; %APPDATA%\Pub\Cache\bin for Windows).
glTF-Validator
  1. Clone this repository, master branch.
  2. From the repository root folder, run pub get to get dependencies.
  3. Run pub global activate --source path ./ to add Validator executable to your PATH.

Usage

Run gltf_validator <asset-file>. JSON report will be printed to stdout.