LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: Asimp does not see textures  (Read 270 times)

wartemw

  • Newbie
  • *
  • Offline Offline
  • Posts: 24
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?
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1888
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.
Logged