Skip to content

camenduru/TostEngine-vulkan-glb-viewer-standalone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍞 TostEngine Vulkan glTF/GLB Viewer Standalone

A simple 3D model viewer for glTF/GLB files using Vulkan.

Screenshot 2025-12-28 220815

Features

  • Load and display glTF 2.0 binary (.glb) files
  • PBR texture support (including WebP textures via EXT_texture_webp)
  • Mouse interaction:
    • Left-click drag: Rotate model
    • Scroll wheel: Zoom in/out
  • Window resizing and maximizing support
  • Depth buffering for correct 3D rendering

Building

Requirements

  • CMake 3.16+
  • Vulkan SDK
  • C++17 compiler

Build Steps

mkdir build
cd build
cmake ..
cmake --build . --config Release

Usage

./gltf_viewer <path_to_model.glb>

Example

./gltf_viewer model.glb

Dependencies

All dependencies are fetched automatically via CMake FetchContent:

  • GLFW - Window and input handling
  • GLM - Mathematics library
  • tinygltf - glTF loader
  • libwebp - WebP texture decoding
  • stb_image - Image loading (bundled with tinygltf)

Controls

Input Action
Left Mouse + Drag Rotate model
Scroll Wheel Zoom in/out
Window Resize Automatically adjusts viewport

License

MIT License

About

A simple 3D model viewer for glTF/GLB files using Vulkan.

Resources

Stars

Watchers

Forks

Packages

No packages published