gltf-viewer

glTF 2.0 Viewer written in Rust

3d-graphics · gltf · gltf-viewer · opengl · rust
入门
GitHub在线演示
Stars:205
License:The Unlicense
更新:2025/12/22

README

glTF_Viewer

glTF animation viewer using TinyglTF

Build

sudo apt-get install xorg-dev
# clone libs
git submodule update --init --recursive

mkdir build
cd build
cmake .. && make -j4
./glTF_viewer -h

Usage

Usage: glTF_viewer [options] glTF_model_path 

Positional arguments:
glTF_model_path         glTF model path.

Optional arguments:
-h --help               show this help message and exit
-x --width              specify the width.
-y --height             specify the height.

Use w,a,s,d to move the camera, use mouse to rotate camera. Press 0 to hide cursor.

Feature

  • Morph Targets
  • Skeleton Animation
  • PBR
  • OIT

Author : patrix

[url: https://sketchfab.com/3d-models/sci-fi-girl-v02-walkcycle-test-07ac452d75cc47969234b224422ea85d]

Author : theStoff

[url: https://sketchfab.com/3d-models/zelda-breath-of-the-wild-bf99374334a64291ae2876c83269adb6]

Todo List

  • Improve render quality.

Library Used

Acknowledge

Refer to glTF_Animation's code to load glTF and skeleton animation.