3
$\begingroup$

I am learning opengl from here and we are given an obj file for blender of crysis nanosuit.

When I load this with opengl, it just loads fine. But then I imported the file to blender and added some color and made an ironman-suit on it. The picture looks like this ironsuit

Then I exported the file as .obj format and loaded it in opengl the same way as before.
But this time when I load the image, it just shows a black body with no color or anything. Just plain black. Why isn't any color showing?

$\endgroup$
3
  • $\begingroup$ How did you add the color to the mesh? How do you import the model into OpenGl and how do you render it? $\endgroup$
    – piegames
    Commented May 22, 2016 at 14:00
  • $\begingroup$ I opened the blend file , I imported the model and added color through material , then imported the model through assimp and here is how I rendered it , learnopengl.com/code_viewer.php?code=mesh&type=header $\endgroup$ Commented May 22, 2016 at 14:18
  • $\begingroup$ This doesn't really seem to be a question about Blender. It is either about whatever importer you are using, the ASSIMP library or OpenGL itself. OBJ is mainly a geometry based format, not really suited for material export. $\endgroup$ Commented May 22, 2016 at 18:28

0

You must log in to answer this question.

Browse other questions tagged .