1 Star 0 Fork 0

毛三/tinygltf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/llmllm/tinygltf.git
git@gitee.com:llmllm/tinygltf.git
llmllm
tinygltf
tinygltf
master

搜索帮助