Assimp will import 3D Models into your game or application, whether you’re using OpenGL, Direct3D, or some other programming interface. Once you’ve got to grips with manually typing in vertex data to draw basic shapes and objects such as triangles and cubes, by setting up buffer objects and working with simple shaders — the next step is to then import models designed in modelling software. Blender is one such program — free open-source software, feature rich, allowing you to design anything you can imagine. This tutorial provides the source code for cycling through Assimp's data structures, and also demonstrates the basics in Blender showing how to apply texture images to mesh faces, and then step-by-step how to export vertices, normal vectors, and UV map texture coordinates to the object and material file format... ready for Assimp to import. Phong lighting is one of many different lighting techniques used in computer graphics and is also demonstrated as part of this model loading tutorial. The ambient, diffuse and specular aspects can be applied individual, together, and even blended with the sampler images. Visit https://www.programmingcreatively.com/opengl-tutorial-5-qs.php to acquire all the source code for each OpenGL Quick Start tutorial episode. That way you can just copy and paste rather than typing it all in. 00:00 - Introduction 01:16 - CMake & Assimp setup + Blender 02:57 - Load model class code explanation 05:50 - Exporting models as OBJ files 07:12 - Exporting with normal vectors 07:43 - Exporting with texture images 08:44 - Vertex shader explanation 09:05 - Fragment shader lighting
Assimp will import 3D Models into your game or application, whether you’re using OpenGL, Direct3D, or some other programming interface. Once you’ve got to grips with manually typing in vertex data to draw basic shapes and objects such as triangles and cubes, by setting up buffer objects and working with simple shaders — the next step is to then import models designed in modelling software. Blender is one such program — free open-source software, feature rich, allowing you to design anything you can imagine. This tutorial provides the source code for cycling through Assimp's data structures, and also demonstrates the basics in Blender showing how to apply texture images to mesh faces, and then step-by-step how to export vertices, normal vectors, and UV map texture coordinates to the object and material file format... ready for Assimp to import. Phong lighting is one of many different lighting techniques used in computer graphics and is also demonstrated as part of this model loading tutorial. The ambient, diffuse and specular aspects can be applied individual, together, and even blended with the sampler images. Visit https://www.programmingcreatively.com/opengl-tutorial-5-qs.php to acquire all the source code for each OpenGL Quick Start tutorial episode. That way you can just copy and paste rather than typing it all in. 00:00 - Introduction 01:16 - CMake & Assimp setup + Blender 02:57 - Load model class code explanation 05:50 - Exporting models as OBJ files 07:12 - Exporting with normal vectors 07:43 - Exporting with texture images 08:44 - Vertex shader explanation 09:05 - Fragment shader lighting