BabylonJS / BabylonToolkit

Home of the community maintained Unity & Unreal exporters for Babylon.js
179 stars 47 forks source link

FileNotFound Exceptions while Exporting #15

Closed kvinsu closed 4 years ago

kvinsu commented 4 years ago

Once clicking Build and Preview, I am getting three FileNotFound Exceptions for .hdr-Files. The project itself is working, but I am concerned that these Exceptions might pose a problem in the future. Console

sebavan commented 4 years ago

ping @MackeyK24.

You should have an answer shortly but there might be a bit of delay with Thanksgiving :-)

MackeyK24 commented 4 years ago

Dunno bout this... where is that hdr coming from???

Can you package up the scene and send to me so i can try on build on my end ???

kvinsu commented 4 years ago

Mail is sent @MackeyK24 !

MackeyK24 commented 4 years ago

Maybe its something with the version of Unity you are using... What the version ???

I just open your 3DModelViewer.unitypackage (Which includes the babylon toolkit folder, so i didnt have to add anything to your project)

It Build just Fine.... No funny .hdrm missing file error:

Screen Shot 2019-11-29 at 1 28 23 AM

And it show your spinning cube just fine:

Screen Shot 2019-11-29 at 1 28 39 AM

So try updating your Unity... Also... If you are not using Unity Hub to maintain your Unity Versions.... You really should :)

kvinsu commented 4 years ago

I'm currently using the current LTS Unity one (still 2018), does that make a difference?

MackeyK24 commented 4 years ago

Try the latest 2019 version

MackeyK24 commented 4 years ago

Dunno... Looks like some kind of TEMP file issue on your system.

The ExportReflectionsRaw function DOES make a temp HDR file for the environment... But that is pretty standard .NET File IO.

Please use Latest Unity 2019 which is now .NET 4.0 based and does not have any local temp file issues.