commit | aec35f10c06a68543b8ae62d370410b18900e228 | [log] [tgz] |
---|---|---|
author | Syoyo Fujita <syoyo@lighttransport.com> | Sun Dec 03 17:19:55 2017 +0900 |
committer | Syoyo Fujita <syoyo@lighttransport.com> | Sun Dec 03 17:19:55 2017 +0900 |
tree | ce2a94ac6d4ff43164fdfa30c9def4cb243e6e72 | |
parent | 802b4df991a9e5e7827fb0dff0cf6985537e9f83 [diff] |
Update README.
TinyGLTF
is a header only C++11 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
, json.hpp
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