Hello Guest

Asimp does not see textures

  • 1 Replies
  • 640 Views
Asimp does not see textures
« 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?

*

Offline spasi

  • *****
  • 2011
    • WebHotelier
Re: Asimp does not see textures
« Reply #1 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.