I’m try to see a 360 video with a VR camera.
the video runs fine and the camera split in two. but when i put the oculus and run it in FireFox not detect the oculus. i tryed the firefox VR demos and works well.
some one solve this problem??
i use a xampp server i don’t know if this is the problem.
this is my code:
var canvas = document.getElementById(“renderCanvas”);
var engine = null;
var scene = null;
var sceneToRender = null;
var createDefaultEngine = function() { return new BABYLON.Engine(canvas, true, { preserveDrawingBuffer: true, stencil: true }); };
var createScene = function () {
var scene = new BABYLON.Scene(engine);
var camera = new BABYLON.VRDeviceOrientationArcRotateCamera ("Camera", Math.PI/2, Math.PI/4, 25, BABYLON.Vector3.Zero(), scene);
camera.setTarget(new BABYLON.Vector3(0, 0, 10));
camera.attachControl(canvas, true);
var videoDome = new BABYLON.VideoDome(
"videoDome",
"videos/ScubaMaldives.mp4",
{
resolution: 32,
clickToPlay: true
},
scene
);
videoDome.videoMode = BABYLON.VideoDome.MODE_TOPBOTTOM;
return scene;
};
regards and i hope anybody could help me pls