commit | cd1ddf341d66a9d7887a71e07b79d0d640ea983c | [log] [tgz] |
---|---|---|
author | Syoyo Fujita <syoyo@lighttransport.com> | Wed Nov 15 13:55:14 2017 +0900 |
committer | Syoyo Fujita <syoyo@lighttransport.com> | Wed Nov 15 13:55:14 2017 +0900 |
tree | 74593fa4d9ccecd7adc629b2f4385d2bd65352a3 | |
parent | b23f6fe492b3df76ced69da9bc6b369c88f32cbd [diff] |
Describe supported platforms in README. Better isnan/isinf availabity test(I guess).
TinyGLTF
is a header only C++ glTF 2.0 https://github.com/KhronosGroup/glTF library.
Work in process(devel
branch). Very near to release, but need more tests and examples.
.bin
file.extensions
and extras
propertyanimation
and skin
TinyGLTF is licensed under MIT license.
TinyGLTF uses the following third party libraries.
Copy stb_image.h
, picojson.h
and tiny_gltf.h
to your project.
// Define these only in *one* .cc file. #define TINYGLTF_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #include "tiny_gltf.h" using namespace tinygltf; Model model; TinyGLTF loader; std::string err; bool ret = loader.LoadASCIIFromFile(&model, &err, argv[1]); //bool ret = loader.LoadBinaryFromFile(&model, &err, argv[1]); // for binary glTF(.glb) if (!err.empty()) { printf("Err: %s\n", err.c_str()); } if (!ret) { printf("Failed to parse glTF\n"); return -1; }
T.B.W.
Python 2.6 or 2.7 required. Git clone https://github.com/KhronosGroup/glTF-Sample-Models to your local dir.
After building loader_example
, edit test_runner.py
, then,
$ python test_runner.py