Hi. The latest stable ‘official’ version is 4.2 and you can find it here
More info about cdn you find here
The latest version 5.0.0 alphaX you can find it here
This is very stable as well.
It is recomanded to not mix them like load the core from cdn and the loaders from preview
Cheers!
But I need to render the scene in the browser. I’m getting this issue:
I have nothing in the scene and this is the code
const CANVAS = document.getElementById('canvas');
const ENGINE = new BABYLON.Engine(CANVAS);
var SCENE = new BABYLON.Scene(ENGINE);
ENGINE.runRenderLoop(function(){
if(SCENE){
SCENE.render();
}
})
Cannot read property 'trackUbosInFrame' of undefined.
The weird thing is that it works in one project and it doesn’t work in another. I just can’t see the problem. The problem appears only when I try to create a scene.
Is there a link preview of BabylonJS 4.2?
UPDATE: I think I figured it out. The problem was that my script was trying to create an engine before the canvas required was loaded. So I edited it so that the script loads after all the document elements has been finished loading or created.