Skip to content

Commit

Permalink
Merge pull request #2 from sketchfab/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
syoyo authored May 30, 2017
2 parents 2fb2f92 + 6d3bfd7 commit 4ebd5a9
Show file tree
Hide file tree
Showing 11 changed files with 3,318 additions and 2,149 deletions.
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tiny glTF loader, header only C++ glTF parsing library.
# Header only C++ tiny glTF library(loader/saver).

`TinyGLTFLoader` is a header only C++ glTF https://github.com/KhronosGroup/glTF parsing library
`TinyGLTF` is a header only C++ glTF https://github.com/KhronosGroup/glTF library.

![](images/glview_duck.png)

Expand All @@ -12,9 +12,10 @@

* Portable C++. C++-03 with STL dependency only.
* Moderate parsing time and memory consumption.
* glTF specification v1.0.0
* glTF specification v2.0.0
* [x] ASCII glTF
* [x] Binary glTF(https://github.com/KhronosGroup/glTF/tree/master/extensions/Khronos/KHR_binary_glTF)
* [x] PBR material description
* Buffers
* [x] Parse BASE64 encoded embedded buffer fata(DataURI).
* [x] Load `.bin` file.
Expand All @@ -29,24 +30,24 @@
## Examples

* [glview](examples/glview) : Simple glTF geometry viewer.
* [writer](examples/writer) : Simple glTF writer(serialize `tinygltf::Scene` class)
* [writer](examples/writer) : Simple glTF writer(serialize `tinygltf::Model` class)
* [alembic_to_gltf](examples/alembic_to_gltf) : Simple Alembic to glTF converter.
* [cyhair_to_gltf](examples/cyhair_to_gltf) : Simple CyHair(hair curves) to glTF converter.

## TODOs

* [ ] Write C++ code generator from json schema for robust parsing.
* [ ] Support multiple scenes in `.gltf`
* [ ] Parse `skin`
* [ ] Write serialization example.
* [ ] Compression/decompression(Open3DGC, etc)
* [ ] Support `extensions` and `extras` property
* [ ] HDR image?
* [ ] Write tests for `animation` and `skin`

## License
## Licenses

TinyGLTFLoader is licensed under MIT license.
TinyGLTF is licensed under MIT license.

TinyGLTFLoader uses the following third party libraries.
TinyGLTF uses the following third party libraries.

* picojson.h : Copyright 2009-2010 Cybozu Labs, Inc. Copyright 2011-2014 Kazuho Oku
* base64 : Copyright (C) 2004-2008 René Nyffenegger
Expand All @@ -57,6 +58,8 @@ TinyGLTFLoader uses the following third party libraries.

Copy `stb_image.h`, `picojson.h` and `tiny_gltf_loader.h` to your project.

### Loading glTF 2.0 model

```
// Define these only in *one* .cc file.
#define TINYGLTF_LOADER_IMPLEMENTATION
Expand All @@ -81,6 +84,10 @@ if (!ret) {
}
```

### Saving gltTF 2.0 model

T.B.W.

## Running tests.

### Setup
Expand Down
267 changes: 0 additions & 267 deletions box.gltf

This file was deleted.

Loading

0 comments on commit 4ebd5a9

Please sign in to comment.