commit | b495603c678f093e0b9c2ee339947a96c3a4b618 | [log] [tgz] |
---|---|---|
author | Syoyo Fujita <syoyo@lighttransport.com> | Sat Feb 06 17:28:42 2016 +0900 |
committer | Syoyo Fujita <syoyo@lighttransport.com> | Sat Feb 06 17:28:42 2016 +0900 |
tree | 9222d9c9123b9d9017db233b9321c8a6d54707cd | |
parent | 61fb52b57d040099697b628d5b403350f7509ee9 [diff] |
Update README.
TinyGLTFLoader
is a header only C++ glTF https://github.com/KhronosGroup/glTF parsing library
.bin
file.Currently, TinyGLTFLoader only loads nodes and geometry(mesh/buffer) data.
.gltf
animation
, program
, sampler
, shader
, technique
, texture
extensions
and extras
propertyTinyGLTFLoader is licensed under 2-clause BSD.
TinyGLTFLoader uses the following third party libraries.
Copy stb_image.h
, picojson.h
and tiny_gltf_loader.h
to your project.
// Define these only in *one* .cc file. #define TINYGLTF_LOADER_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #include "tiny_gltf_loader.h" using namespace tinygltf; Scene scene; TinyGLTFLoader loader; std::string err; bool ret = loader.LoadFromFile(scene, err, argv[1]); if (!err.empty()) { printf("Err: %s\n", err.c_str()); } if (!ret) { printf("Failed to parse glTF\n"); return -1; }
Python 2.6 or 2.7 required. Git clone https://github.com/KhronosGroup/glTF to your local dir.
After building loader_test
, edit test_runner.py
, then,
$ python test_runner.py