OpenGL study notes TEN - Importing models from complex modeling software: Assimp use

OpenGL study notes TEN - Importing models from complex modeling software, use Assimp

Common Modeling Software

  • Blender
  • 3DS Max
  • Maya
  • Houdini (programmable generation model is very powerful, it is recommended to learn to use)

Common model format

  • .obj (common format)
  • .max (max modeling software)
  • .fbx (game engine used format)
  • .maya (Maya modeling software)

Model load library

Assimp

A very popular model import library is Assimp, it is an acronym for Open Asset Import Library (open import library assets) of. Before similar plug-in library when importing pictures

Assimp compilation step

Basic environment

  • Operating System: Windows 10

  • Compiler: Visual Studio 2017

  • GLAD library

  • GLFW library

Assimp Download 1
GitHub slow download speeds, you can use other links
Assimp Download 2
Assimp Download 3
cmake Download
other download link
cmake Download
DirectX installation

Installation error, error code s1023, the solution
to Microsoft Visual C ++ 2010 Redistributable x86 and x64 versions are uninstalled, and then install

Detailed compilation process, see my other links, good luck one can be successful, but sometimes encounter a very strange problem, configure some trouble, my:

Daquan stepped pit

If they encounter problems during compilation, I have compiled placed on CSDN, can use the following direct download link to download the contents of the file compiled:

dll and lib

head File

With the process and configuration GLFW as reference links
compiled assimp

use:

Project uses the following header file that is not being given instructions Success! ! ! !

#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>

Please refer to the imported model LearnOpenGL official website

Published 60 original articles · won praise 223 · views 40000 +

Guess you like

Origin blog.csdn.net/qq_36696486/article/details/104340516