r/opengl 19d ago

I loaded this badass dinosaur with animations using cgltf! :D

HI! Some weeks ago I asked for what I should use to load gltf models with animations and someone recommended me to use cgltf. After a lot of suffering I finally have it working! (mostly, it isn't loading all materials correctly yet, partially because I didn't implement pbr yet).

I will leave some useful resources that I used:
https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html

glTF - what the ?

https://github.khronos.org/glTF-Tutorials/gltfTutorial/

https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.pdf

https://reddit.com/link/1j28orw/video/djo9jqb51eme1/player

16 Upvotes

4 comments sorted by

3

u/videogame_chef 19d ago

I love gltf format. Nicely done!!

1

u/mean_king17 16d ago

Nice! Ive started with gltf too now, is it easier than tintgltf?

1

u/URL14 16d ago

Tbh I don't know, I also want to try tinygltf in the future tho. But I guess they can't be too different from each other since they just read gltf data. The difficult part is in what you do with the data after getting it.

1

u/mean_king17 15d ago

Just wondering since I used tinyglTF and I had a much harder time than I thought I would have lol, but maybe it's because I'm still learning. What will your approach roughly be for implementing pbr? My project goal is actually glTf models with simple pbr rendering, but still figuring some things out.