https://github.com/t-88/gltf-viewer
https://github.com/t-88/gltf-viewer
computer-graphics cpp gltf gltf-loader gltf-viewer opengl
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/t-88/gltf-viewer
- Owner: t-88
- License: mit
- Created: 2024-02-04T14:10:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-13T08:52:12.000Z (over 1 year ago)
- Last Synced: 2025-02-01T23:44:54.019Z (4 months ago)
- Topics: computer-graphics, cpp, gltf, gltf-loader, gltf-viewer, opengl
- Language: C++
- Homepage:
- Size: 29.5 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glTF2 Viewer
opengl glfw2 viewer, its good enough# Quick start
- u will need opengl, glfw3
```
$ make
```# Credits
- [jsoncpp](https://github.com/open-source-parsers/jsoncpp)# 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](https://github.com/KhronosGroup/glTF-Sample-Models/tree/main/2.0)
- use other textures to give more depth, somthing related to pbr
- fix the normal mapping texture, looks like its compressed [maybe DXT5nm?](https://catlikecoding.com/unity/tutorials/rendering/part-6/)
- implement camera system and use the camera info provided by gltf file# Showcase
## Transformations and lighting
![]()
## Texture mapping
![]()
![]()
![]()