Update app.py
Browse files
app.py
CHANGED
|
@@ -579,6 +579,10 @@ async(c, o, p, d, n, m)=>{
|
|
| 579 |
BABYLON.Engine.LastCreatedScene.render();
|
| 580 |
}
|
| 581 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
| 582 |
|
| 583 |
BABYLON.Engine.LastCreatedScene.getEngine().setHardwareScalingLevel(1.0);
|
| 584 |
BABYLON.Engine.LastCreatedScene.clearColor = new BABYLON.Color4(255,255,255,255);
|
|
@@ -664,8 +668,6 @@ async(c, o, p, d, n, m)=>{
|
|
| 664 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.y = coords[o_[j]].heading / 180 * Math.PI;
|
| 665 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.z = -coords[o_[j]].pitch / 180 * Math.PI;
|
| 666 |
}*/
|
| 667 |
-
alert(document.getElementById("output_video").getElementsByTagName("video")[0].src);
|
| 668 |
-
alert(document.getElementById("depth_video").getElementsByTagName("video")[0].src);
|
| 669 |
const videoDome = new BABYLON.VideoDome(
|
| 670 |
"videoDome",
|
| 671 |
[document.getElementById("output_video").getElementsByTagName("video")[0].src],
|
|
|
|
| 579 |
BABYLON.Engine.LastCreatedScene.render();
|
| 580 |
}
|
| 581 |
});
|
| 582 |
+
|
| 583 |
+
alert(JSON.parse(document.getElementById("output_video").getElementsByTagName("video")));
|
| 584 |
+
alert(JSON.parse(document.getElementById("depth_video").getElementsByTagName("video")));
|
| 585 |
+
|
| 586 |
|
| 587 |
BABYLON.Engine.LastCreatedScene.getEngine().setHardwareScalingLevel(1.0);
|
| 588 |
BABYLON.Engine.LastCreatedScene.clearColor = new BABYLON.Color4(255,255,255,255);
|
|
|
|
| 668 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.y = coords[o_[j]].heading / 180 * Math.PI;
|
| 669 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.z = -coords[o_[j]].pitch / 180 * Math.PI;
|
| 670 |
}*/
|
|
|
|
|
|
|
| 671 |
const videoDome = new BABYLON.VideoDome(
|
| 672 |
"videoDome",
|
| 673 |
[document.getElementById("output_video").getElementsByTagName("video")[0].src],
|