Loading texture files in Noesis (possible bug?)
Posted: Sun Jun 12, 2016 1:25 am
So I just learned about the method loadExternalTex, which according to Noesis readme file: "returns a NoeTexture, or None if the texture could not be found." And for its arguments it says it accepts a string as "name/path of texture, without extension."
I'm not sure if I found a bug or something but the only way I can get this function to work is if the texture file is in the same folder as the main file registered with Noesis for previewing (usually a mesh file).
For example, if I'm using Noesis to load some model/mesh at "c:\dir1\dir2\polygon.mesh", and this model requires two textures which are located at "c:\dir1\dir2\tex1.dds", and "c:\dir1\dirA\dirB\tex2.dds",
Edit: I forgot to mention I'm of course using the latest version of Noesis (v4.177)
I'm not sure if I found a bug or something but the only way I can get this function to work is if the texture file is in the same folder as the main file registered with Noesis for previewing (usually a mesh file).
For example, if I'm using Noesis to load some model/mesh at "c:\dir1\dir2\polygon.mesh", and this model requires two textures which are located at "c:\dir1\dir2\tex1.dds", and "c:\dir1\dirA\dirB\tex2.dds",
- The following call works and returns a NoeTexture object:
rapi.loadExternalTex("c:\\dir1\\dir2\\tex1") - But the following call mysteriously fails and returns None:
rapi.loadExternalTex("c:\\dir1\\dirA\\dirB\\tex2")
Edit: I forgot to mention I'm of course using the latest version of Noesis (v4.177)