Skip to content

bwasty/gltf-viewer

Repository files navigation

gltf-viewer

crates.io Build Status

glTF Viewer written in Rust (WIP). Current state: most simple models can be loaded, but there is no lighting/texturing (normals are used as color):

gltf-viewer

Installation

From crates.io

cargo install gltf-viewer

From source

git clone https://github.com/bwasty/gltf-viewer.git
cd gltf-viewer
cargo install gltf-viewer

Usage

gltf-viewer <filename|URL>

Both .gltf and .glb files are supported. Navigate the scene with WASD + Mouse.

Example

gltf-viewer https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/BarramundiFish/glTF/BarramundiFish.gltf

Goals

  • Complete gltF 2.0 support
  • Reusable & extensible renderer
    • may be extracted later for a gltf-engine that can be used for 3D apps
  • Platforms: Windows, Linux, macOS, Browser (via WebAssembly)
  • Graphics backends:
    • OpenGL ES 3.0 (-> WebGL 2.0 via WebAssembly)
    • Vulkan?
  • VR support
    • Focus: OpenVR (HTC Vive)
    • WebVR?