where can I find the EmbededTexture property from which I can get the texture reference ?

Issue #39 resolved
Former user created an issue

I have an issue when I tried to read texture image information using AssimpNet.

The fbx file that I tried to read has 10 embedded textures and has no external textures: texture screenshot

according to the information from assimp, the embedded textures are referenced from materials using strings like "*0", "*1" as the texture paths: material texture information 1

However, among the 12 materials in my fbx file, some them have texture paths like "..\buildings.fbm\6M4P000O.JPG" which corresponds to the image file name: material texture information 2

As for the first scenario which has strings like "*0", "*1", I can find corresponding texture by using the number as the reference to Textures, but for the second scenario, I could not find the corresponding file name from Textures because in AssimpNet, the EmbeddedTexture has no such property: assimpnet EmbeddedTexture properties

But according to assimp, which is the base of assimpnet, from its texture.h file, I found that it has a property called mFilename and from this property we could get the texture's image file name; assimp texture.h

I am wondering if AssimpNet should include filename into EmbededTexture properties so that we could find the correct reference if the filepath contains the filename rather than number.

Comments (2)

  1. Log in to comment