t-88 / glTF-viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glTF2 Viewer

opengl glfw2 viewer, its good enough

Quick start

  • u will need opengl, glfw3
    $ make

Credits

Features

  • loading models with one node (only tested for one node)
  • 3d transformations
  • diffuse lighting
  • texture mapping
  • auto generate normals if not provided (cross product)

Todo features

  • continue with gltf2 github
  • use other textures to give more depth, somthing related to pbr
  • fix the normal mapping texture, looks like its compressed maybe DXT5nm?
  • implement camera system and use the camera info provided by gltf file

Showcase

Transformations and lighting

transformations and lighting

Texture mapping

cube

duck

helemt

About

License:MIT License


Languages

Language:C++ 80.1%Language:C 17.8%Language:Objective-C++ 1.5%Language:Objective-C 0.3%Language:Batchfile 0.1%Language:CMake 0.1%Language:GLSL 0.1%Language:HTML 0.0%Language:Makefile 0.0%Language:GDB 0.0%Language:Shell 0.0%