Hi I tried running this demo https://playground.babylonjs.com/#TAFSN0#2 on a local server with the chrome API emulator extension but see just a black full screen after clicking the ar gogles. Any idea as to why works great in Babylon playground?
Added html components to the demo
Added this to beginning
<head>
<meta name = "viewport" content = "user-scalable=0,initial-scale"
<title> </title>
<script src = https://cdn.babylonjs.com/babylon.max.js> </script>
<style>
#canvas{
width:100%;
height:100%;
}
</style>
</head>
<body>
<canvas id = "canvas"> </canvas>
<script>
window.addEventListener("DOMContentLoaded",function(){
var canvas = document.getElementById("canvas");
var engine = new BABYLON.Engine(canvas,true);
And this to end
panel.addControl(picker);
var colors = {
seaFoam: BABYLON.Color3.FromHexString("#16a085"),
green: BABYLON.Color3.FromHexString("#27ae60"),
blue: BABYLON.Color3.FromHexString("#2980b9"),
purple: BABYLON.Color3.FromHexString("#8e44ad"),
navy: BABYLON.Color3.FromHexString("#2c3e50"),
yellow: BABYLON.Color3.FromHexString("#f39c12"),
orange: BABYLON.Color3.FromHexString("#d35400"),
red: BABYLON.Color3.FromHexString("#c0392b"),
white: BABYLON.Color3.FromHexString("#bdc3c7"),
gray: BABYLON.Color3.FromHexString("#7f8c8d")
}
return scene;
}
var scene = createScene();
engine.runRenderLoop(function(){
scene.render();
});
});
</script>
</body>