Make a model in Blender and load in opengl
Asked Answered
T

1

6

I want to make a 3D model in Blender and load it in OpenGL. Can someone give a step-by-step approach on how to do so. I tried to google but did not get any proper results.

Programming language: C++,

Tools: GLFW + GLAD + GLM

Thiel answered 31/1, 2016 at 8:8 Comment(0)
V
5

Its a 3 step process, using external libraries.

  1. Model in blender. Export from Blender to .obj format (also containing .mtl file with reference to textures used).

Refer to

https://blender.stackexchange.com/questions/121/how-do-i-export-a-model-to-obj-format

  1. Use a library like Assimp to produce vertices and attributes.

  2. Use the vertices and attributes in your OpenGL application, using a method like described in,

https://nickthecoder.wordpress.com/2013/01/20/mesh-loading-with-assimp/

Visor answered 31/1, 2016 at 8:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.