LWJGL Forum

Programming => OpenGL => Topic started by: wartemw on May 14, 2017, 11:03:52

Title: Asimp does not see textures
Post by: wartemw on May 14, 2017, 11:03:52
Asimp does not see textures.
Model from blender.

code

AIScene scene = Assimp.aiImportFile("C:\\Users\\warte\\Desktop\\test.blend", 0);
System.out.println("Mesh number:" + scene.mNumMeshes());
System.out.println("Material number:" + scene.mNumMaterials());
System.out.println("texture number:" + scene.mNumTextures());


print

Mesh number:2
Material number:2
texture number::0

what to do?
Title: Re: Asimp does not see textures
Post by: spasi on May 14, 2017, 20:47:16
From the aiScene documentation:

Quote
mTextures – The array of embedded textures. Not many file formats embed their textures into the file. An example is Quake's MDL format (which is also used by some GameStudio versions)

Look into mMaterials, the textures should be described there.