eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.39k stars 4.38k forks source link

Textures aren't working for downloaded FBX file from WebGL runtime from Unity. #795

Open architp1112 opened 1 year ago

architp1112 commented 1 year ago

We're having an issue with the plugin (https://github.com/KellanHiggins/AsciiFBXExporterForUnity) we're using to download FBX files from the WebGL runtime. We're able to successfully download the 3D model with texture in our local machine from WebGL with using your plugin, but when we open the FBX file, the texture is not merged with the model.

We've received feedback from the plugin developer that the reason the textures aren't working is because there is additional saving work that involves paths within the method FBXUnityMaterialGetter. They've said that we need to look in there and add some methods to ensure that at runtime the textures are saved at the texture path. They've specifically mentioned the SaveTextureRunTime method, which they believe is probably failing.

As a result, the downloaded model retains its texture. We would really appreciate it if you could provide any solutions to this issue. It would be very helpful for us.