I am adding gltf2 support to Cinder


#1

The code is here https://github.com/jing-interactive/MeshViewer
Still in early stage, but it’s working.
I should have it completed in this month (2018-Sept)


#2

I am so productive :slight_smile:


#3

Very cool! It will be great to get the animation data working eventually too.


#4

More


#5

For anyone else getting three unresolved external symbols for tinyGltf::WriteImageData for png jpg and bmp.
All you have to do is add, TINYGLTF_NO_STB_IMAGE_WRITE to Preprocessor.Definition.
Thanks Jing! Great work and looking good!


#6

tiny_obj_loader based OBJ loading is also added in this project, Cinder’s obj loader is sometimes too slow :frowning:


#7

@vinjn I’ve also been working on a utility for rendering GLTF2 files parsed with tinygltf. It has support for rigid animations and up to 4 blend shapes per mesh.

I wasn’t intending to release it since the implementation is pretty specific for my use case, but the code is up in a Gist. Feel free to use it verbatim or as reference:

ryan


#8

Looks promising, can you create a buildable project so that we can play with it?