lighttransport / gltf-insight

C++11 based glTF 2.0 data insight tool
MIT License
27 stars 4 forks source link

glTF 2.0 data insight tool Build Status Build status

gltf-insight is a C++11 based data insight tool for glTF 2.0 model.

For example, you can display and tweak animation prameters this tool(since glTF 2.0 spec does not allow ASCII serialization for animation parameters)

gltf-insight also could be another reference viewer for glTF animation and PBR shading.

More to say, gltf-insight also could be used for playground and reference implementation for your glTF extension.

gltf-insight uses TinyGLTF for load/save glTF model and ImGUI for GUI.

Status

The development is abondoned and archived

glTF extension support:

general:

material:

lighting:

Latest coninious build are available for Linux (AppImage) and Windows (portable exe). Both are 64bit

Requirements

Supported platforms

Features

Setup

Every source dependencies is either enclosed within the source code, or is pulled from submodules. These dependences also uses subomudles. You will need to get them recursively. This command should get you up and running:

git submodule update --init --recursive

Build

In the genral case, just run CMake to generate a build system for your own environment. Some scripst are provided to facilitate the setup.

Windows + Visual Studio 2017

Please run vcsetup.bat to generate project files.

From a git for Windows(mintty)

You can use cmd //c to call batch file from a mintty terminal.

cmd //c vcsetup.bat

Linux and macOS

Makefiles for building the program can easilly be generated by CMake after a (recursive) clone of this repository.

mkdir build
cd buid
cmake ..
make

This assume that you have the necessary X11 and OpenGL developement libraries on your system. Here's some hints on what to install on some distributions we have tested:

On Ubuntu

You may need to install a few dependencies :

sudo apt install git cmake mesa-common-dev libgl1-mesa-dev libxrandr-dev libxcb-xinerama0 libxinerama-dev libxcursor-dev libxi-dev

On CentOS7

You can use cmake3 package and You may need to install a few dependencies :

sudo yum install git cmake3 libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel

Emscripten (WebGL version) Deprecated

Emscripten build is deprecated. This may not work.

This program is buildable as a WebAssembly WebGL 2.0 application using Emscripten.

You will need to install the latest emsdk tools. Then in a shell in the emscriten environement. Windows users will need GNU Mac. You can get Minimal GNU for Windows via emsdk:

emsdk install mingw-4.6.2-32bit
emsdk activate mingw-4.6.2-32bit

Then, you can use emscriptem's emcmake wrapper to easilly tell CMake to build with emscriptem:

mkdir build
cd build
emcmake cmake ..
cmake --build .

Build options

TODO

License

MIT license

Third party licenses

gltf-insight is built upon the following open-source projects:

“glTF and the glTF logo are trademarks of the Khronos Group Inc.”