Babylonjs canvas+ isnt work


#1

Example works fine on Cocoon Developer App -> webview. But in Cocoon Developer App -> canvas+ I do not see my box
Get all archive raccoobe.raccoons.lv/cocoon.zip
Code

    var camera, canvas, engine, mesh, scene;

canvas = document.createElement('canvas');
document.body.appendChild(canvas);
canvas.screencanvas = true;
engine = new BABYLON.Engine(canvas, true);
scene = new BABYLON.Scene(engine);
camera = new BABYLON.ArcRotateCamera('camera', 0, 0, 0, BABYLON.Vector3.Zero(), scene);
camera.setPosition(new BABYLON.Vector3(0, 20, -50));
new BABYLON.HemisphericLight('Light', new BABYLON.Vector3(-50, 50, -80), scene);
scene.clearColor = new BABYLON.Color4(255, 255, 0, 0);
engine.setSize(window.innerWidth, window.innerHeight);

mesh = BABYLON.MeshBuilder.CreateBox('asdf', {
  width: 10,
  height: 10,
  depth: 10
}, scene);

scene.render();

#2

Hi @v11,

Sorry, BabylonJS is not compatible with Canvas+, you will need to use the Webview+ for that engine.

Best,