Loading Models Using Assimp // OpenGL Tutorial #18

Loading Models Using Assimp // OpenGL Tutorial #1826:37

Loading Models Using Assimp // OpenGL Tutorial #18 视频的下载信息和详情

作者:

OGLDEV

发布日期:

2021/8/28

观看次数:

47.4K

简介:

In this video we learn how to load models from various file formats using the Assimp library and render them in OpenGL. We store the models in OpenGL buffers using a method called 'Structure of Arrays' (SOA) and compare it to the previously used 'Array of Structures' (AOS). Finally, we enable the depth test to fix a visual issue with the rendered model. 0:00 Intro 0:59 Model file formats 1:23 Introducing Assimp 2:04 Installing Assimp on Linux 3:34 Installing Assimp on Windows 7:47 Integrating Assimp into your project 7:52 The BasicMesh class 8:20 The BasicMesh::LoadMesh function 9:05 AOS vs SOA 12:38 The aiScene struct 13:13 The aiMesh struct 13:49 The aiMaterial struct 14:09 Planning the import 14:55 Counting the number of vertices and indices 16:20 Reserving space in our vectors 16:52 Initializing a single mesh 17:45 Initializing the texture 19:10 Populating the OpenGL buffers 20:58 The BasicMesh::Render function 21:36 Using glDrawElementsBaseVertex 24:00 Using BaseMesh in the main application code 24:49 Test the code 25:29 Enabling the depth test 25:49 Conclusion