Skeletal Animation Using Assimp - Part 2/5 // OpenGL Tutorial #25

Опубликовано: 18 Январь 2025
на канале: OGLDEV
9,327
201

In this video we continue our journey into Skeletal Animation by creating a vertex buffer that maps all the vertices of the model to the IDs of the bones that influence them and their corresponding weights. We implement a small demo that visualizes all the pixels that are influenced by the selected bone in order to make sure that everything is working correctly.

Timecodes:
0:00 Intro & recap
0:44 The plan
1:52 Start of the assimp sandbox codereview
4:45 Mapping bones back to vertices
5:45 Calculating bone IDs
6:07 Updating VertexToBones array
7:01 Testing the utility
8:03 Integrating the changes into the main application
8:34 The SkinnedMesh class
9:18 The bone vertex buffer
10:23 Loading the bone data
10:59 Setting the layout of the bone VB
11:27 Shaders for the demo
14:11 Changes to the main app code
14:38 Final result and conclusion

This tutorial is based on my method of loading models using Assimp. For more details please watch:    • Loading Models Using Assimp // OpenGL...  

The complete mini-series on Skeletal Animation:
Part 1:    • Skeletal Animation Using Assimp - Par...  
Part 2:    • Skeletal Animation Using Assimp - Par...  
Part 3:    • Skeletal Animation Using Assimp - Par...  
Part 4:    • Skeletal Animation Using Assimp - Par...  
Part 5:    • Skeletal Animation Using Assimp - Par...  

🔥 See the list of the books that I'm using as background information for my tutorials: https://ogldev.org/books.html. I highly recommend them for learning more about OpenGL and Vulkan. These are affiliate links so if you use them to buy any of the books the price is the same for you and I will get a small commission (thank-you!).

"OpenGL For Beginners" playlist:    • OpenGL for Beginners  

Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.

Link to source: https://github.com/emeiri/ogldev/blob...
To get the version of the sources that was used in the video checkout the tag TUT_25_SKELETAL_ANIMATION_2.

OpenGL 4.6 specification: https://www.khronos.org/registry/Open...

Feel free to comment below.

Email: [email protected]
Facebook:   / ogldev-188319114585587  
Github: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon:   / ogldev  

Credits:
Music - "Phase Three" by Huma-Huma (Youtube audio library)

Enjoy,

Etay Meiri

#opengl #ogldev #opengtutorials