Please watch this post. I will comment here when Azure is back online
Really sorry for the inconvenience.
Please watch this post. I will comment here when Azure is back online
Really sorry for the inconvenience.
A good reminder to use local lib files ![]()
Can’t agree more!
I thought I had everything locally but it seems something is pulling https://cdn.babylonjs.com/glslang/glslang.js in my codebase for some reason
![]()
Good way to test ![]()
Yeah this could be a weekly event!
scene.createDefaultEnvironment()
createDefaultEnvironment() also wont work
guess I should not be using it as much as I do.
For anyone blocked right now, this section from the docs might be useful ![]()
Here’s the quickest method:
This option is the best for you, as you are in full control of the resources. To get the resources in the CDN structure you can download a Github release at Github Babylon.js releases.
After downloading the cdn snapshot zip file and deploying it on your server, change the base URL to the base URL of the resources deployed.
To change the base URL for all resources loaded by Babylon, use the static member of tools:
BABYLON.Tools.CDNBaseUrl = "https://my.wonderfull.server";
Any resources loaded in our core library will be loaded from this URL instead of https://cdn.babylonjs.com (or https://assets.babylonjs.com). The structure needs to remain the structure of our CDN.
Going online this one is better https://www.jsdelivr.com/ than BabylonJS
No thank you lol ![]()
this could help: Asset missing from BabylonJS CDN breaks scene.createDefaultEnvironment() - #5 by Deltakosh
Ok folks it seems to start to get back online! Please report ![]()
I’ve got a notification for cdn.babylonjs.com/babylon.ktx2Decoder.js not being available. I’ve asked previously, but have never managed to actually get it to deploy locally, don’t remember the reason. Does anyone know whether this has become more straightforward in the meantime?
@alexchuber any reason why it will not work from a local reference? Maybe CORS ?
@rassie It could help if you have a repro somewhere
It’s hardcoded somewhere to use CDN by default. Replacing that is somewhat elaborate.
I don’t think it is hardcoded as mentioned on that thread:
BABYLON.KhronosTextureContainer2.URLConfig is what you want to update
Well, yes and no. We are firmly in ES6 land, so it’s not as easy. I’ve got my best AI working on it as we speak ![]()
Lol! Let me ping @ryantrem to see if he can help as he is our ES6 mastermind
AFAIK, the only way to avoid fetching the URLConfig.jsDecoderModule (which defaults to babylonjs.ktx2decoder.js) is to use a worker. But that doesn’t sound right either ![]()
Let’s see what others say, and I’ll look into this in the meantime.