You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I was trying to load some .OBJ files from an IOStream. These obj files have attached materials in a separate file. If I'm loading the .obj files using ImportFileFromStream, I get the following error logs:
|Information| - ASSIMP - Info, T10160: Import root directory is './'
|Error| - ASSIMP - Error, T10160: OBJ: Unable to locate material file wall.mtl
If I load the file from the disk with ImportFIle() |Information| - ASSIMP - Info, T16528: Import root directory is 'D:/Dev/GLAssets\'
I tried using a creating an IO System and setting it to the importer, but it doesnt even get called.
The text was updated successfully, but these errors were encountered:
I looked into this. Using the ImportFileFromStream doesn't use the IOSystem - this isn't an oversight, the native library is like that too. If additional model files need to be loaded (like the MTL file), it is recommended to attach an IOSystem and call ImportFromFile. In that scenario, the IOSystem you supply will open a stream to both the OBJ file and the MTL file.
I'm adding some documentation to the XML comments to reflect this.
Hi!
I was trying to load some .OBJ files from an IOStream. These obj files have attached materials in a separate file. If I'm loading the .obj files using ImportFileFromStream, I get the following error logs:
If I load the file from the disk with ImportFIle()
|Information| - ASSIMP - Info, T16528: Import root directory is 'D:/Dev/GLAssets\'
I tried using a creating an IO System and setting it to the importer, but it doesnt even get called.
The text was updated successfully, but these errors were encountered: