We are using angular 11.0.4 (the latest version) and we needed to update babylonjs to the version 5.0.0-alpha.2 to get a fix to another issue that was submitted after the 4.2.0 version.
Since we updated to 5.0.0-apha.2 we are unable to import any model in our scene and we have this issue:
When we rollback to the 4.2.0 version the import works fine.
Here is how we load our model
The second log you see in the first image is from the sceneError callback function in the FilesInput constructor
Hello!
can you repro the issue in the Playground?
Or at least share a debug version somewhere so we can see the repro?
Loading an obj seems to work here: Babylon.js Playground
emmbema
December 11, 2020, 9:23pm
3
Hey, we reproduced the bug by creating a new dummy angular app. We only encounter this since we’ve moved to the @preview
version from npm (5.0.0alpha-n ).
Here’s the repo illustrating it : GitHub - emmbema/ng-babylon-dummy: Repo to test file-loading bug in Babylon.js 5.0.0
Pinging @RaananW to see if he can have a look
RaananW
December 11, 2020, 9:36pm
5
Assigning to me, will look at it as soon as i can.
I can only assume that the file is there and still shows 404?
emmbema
December 16, 2020, 5:01pm
7
Any luck on your side? If you still haven’t had time to test it, do you have a hunch of what it could be / something else we could test to help you?
RaananW
December 16, 2020, 6:26pm
8
I found the problem, but didn’t find what was changed. I want to be sure my fix will work.
It seems like the file protocol is being ignored. will need to check why
RaananW
December 16, 2020, 6:37pm
9
Should we wait for the next release of the alpha to get the fix ?
sebavan
December 16, 2020, 9:02pm
12
It has been released a couple hour ago including the fix in 5.0.0-alpha.4
3 Likes