Skip to content
Mark Millard edited this page Oct 9, 2019 · 25 revisions

This page provides information for building and using the QtglTFTest application.

glTF Resources

glTF™ (GL Transmission Format) is a specification for the transmission and loading of 3D scenes and models by applications.

Generating Documentation

Instructions for generating HTML documentation can be found on the [Generating HTML Documentation](Generating HTML Documentation) wiki.

These instructions describe how to construct documentation for browsing the glTF Schema.

Dependencies

  1. Ubuntu 14.04 64-bit Linux
  2. Node.js, version 0.10.25
  3. Matic (https://github.com/mattyod/matic)
  4. Jade, version 1.11.0 (https://www.npmjs.com/package/jade)

Installation Instructions

Install Node.js

To install Node.js, type the following command in your terminal:

$ sudo apt-get install nodejs

Then install the Node package manager, npm:

$ sudo apt-get install npm

Create a symbolic link for node, as many Node.js tools use this name to execute.

$ sudo ln -s /usr/bin/nodejs /usr/bin/node

Now you should have both the Node and npm commands working:

$ node -v  
v0.10.25  
$ npm -v  
1.3.10

Retrieve glTF 1.0 JSON schema

$ git clone https://github.com/KhronosGroup/glTF.git

Copy the 1.0 schema files ('*.schema.json' files located under '1.0/schema' directory) to a working directory.

Install and Configure Matic

Matic is a build tool for generating HTML documentation from JSON schemas

Install the Node.js matic package:

$ sudo npm install -g matic

Install Jade

$ sudo npm install -g jade

Run Matic

In the working directory, do

matic

Clone this wiki locally