Update app.py
Browse files
app.py
CHANGED
@@ -663,10 +663,11 @@ async(c, o, p, d, n, m)=>{
|
|
663 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.y = coords[o_[j]].heading / 180 * Math.PI;
|
664 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.z = -coords[o_[j]].pitch / 180 * Math.PI;
|
665 |
}*/
|
666 |
-
|
667 |
-
|
|
|
668 |
|
669 |
-
const videoDome = new BABYLON.VideoDome(
|
670 |
"videoDome",
|
671 |
[document.getElementById("output_video").getElementsByTagName("video")[0].src],
|
672 |
{
|
@@ -677,18 +678,18 @@ async(c, o, p, d, n, m)=>{
|
|
677 |
poster: 'https://freeali.se/assets/images/1x1.png',
|
678 |
}, BABYLON.Engine.LastCreatedScene
|
679 |
);
|
680 |
-
|
681 |
for (i = 0; i < q.length; i++) {
|
682 |
let mesh = q[i];
|
683 |
mesh.dispose(false, true);
|
684 |
-
}
|
685 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].scaling.z = -1;
|
686 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.emissiveTexture = videoDome.videoTexture;
|
687 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.emissiveTexture.hasAlpha = true;
|
688 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.useAlphaFromEmissiveTexture = true;
|
689 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].alphaIndex = 1;
|
690 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].visibility = 0.9999;
|
691 |
-
|
692 |
|
693 |
window.md = false;
|
694 |
window.r_old = 1.0;
|
|
|
663 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.y = coords[o_[j]].heading / 180 * Math.PI;
|
664 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.z = -coords[o_[j]].pitch / 180 * Math.PI;
|
665 |
}*/
|
666 |
+
alert(document.getElementById("output_video").getElementsByTagName("video")[0].src);
|
667 |
+
alert(document.getElementById("depth_video").getElementsByTagName("video")[0].src);
|
668 |
+
alert(BABYLON.VideoDome);
|
669 |
|
670 |
+
/*const videoDome = new BABYLON.VideoDome(
|
671 |
"videoDome",
|
672 |
[document.getElementById("output_video").getElementsByTagName("video")[0].src],
|
673 |
{
|
|
|
678 |
poster: 'https://freeali.se/assets/images/1x1.png',
|
679 |
}, BABYLON.Engine.LastCreatedScene
|
680 |
);
|
681 |
+
var q = BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-2]._children;
|
682 |
for (i = 0; i < q.length; i++) {
|
683 |
let mesh = q[i];
|
684 |
mesh.dispose(false, true);
|
685 |
+
}
|
686 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].scaling.z = -1;
|
687 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.emissiveTexture = videoDome.videoTexture;
|
688 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.emissiveTexture.hasAlpha = true;
|
689 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.useAlphaFromEmissiveTexture = true;
|
690 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].alphaIndex = 1;
|
691 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].visibility = 0.9999;
|
692 |
+
*/
|
693 |
|
694 |
window.md = false;
|
695 |
window.r_old = 1.0;
|