tree: ad6f3a4ff9a3a82e48217fe62751f394ff8b25f9 [path history] [tgz]
  1. cmake/
  2. glview/
  3. .gitignore
  4. CMakeLists.txt
  5. glview.cc
  6. glview.sln
  7. premake5.lua
  8. README.md
  9. shader.frag
  10. shader.vert
examples/glview/README.md

Simple OpenGL viewer for glTF geometry.

Requirements

  • premake5 : Requires recent premake5(alpha12 or later) for macosx and linux. premake5 for windows is included in $tinygltf/tools/window directory.
  • GLEW
    • Ubuntu 16.04: sudo apt install libglew-dev
  • glfw3
    • Ubuntu 16.04: sudo apt install libglfw3-dev

MacOSX and Linux

# optional. set pkg-config path to find glfw3
$ export PKG_CONFIG_PATH=/path/to/pkgconfig

> premake4 gmake
$ make

Windows(not tested well)

Edit glew and glfw path in premake5.lua, then

> premake5.exe vs2013

Open .sln in Visual Studio 2013

When running .exe, glew and glfw dll must exist in the working directory.

Build with Draco(optional)

Assume CMake build.

$ mkdir build
$ cd build
$ cmake -DDRACO_DIR=/path/to/draco ../
$ make

TODO

  • [ ] PBR Material
    • [ ] PBR Texture.
  • [ ] Animation