Update app.py
Browse files
app.py
CHANGED
|
@@ -637,7 +637,7 @@ async(c, o, p, d, n, m)=>{
|
|
| 637 |
mesh.dispose(false, true);
|
| 638 |
}
|
| 639 |
var dome = [];
|
| 640 |
-
|
| 641 |
o_[j] = parseInt(o_[j]);
|
| 642 |
dome[j] = new BABYLON.PhotoDome("dome"+j, p[o_[j]].image.url,
|
| 643 |
{
|
|
@@ -663,7 +663,7 @@ async(c, o, p, d, n, m)=>{
|
|
| 663 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].position.x = coords[o_[j]].lng;
|
| 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").innerHTML);
|
| 668 |
alert(document.getElementById("depth_video").innerHTML);
|
| 669 |
|
|
@@ -679,7 +679,7 @@ async(c, o, p, d, n, m)=>{
|
|
| 679 |
}, BABYLON.Engine.LastCreatedScene
|
| 680 |
);
|
| 681 |
var q = BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-2]._children;
|
| 682 |
-
|
| 683 |
let mesh = q[i];
|
| 684 |
mesh.dispose(false, true);
|
| 685 |
}
|
|
|
|
| 637 |
mesh.dispose(false, true);
|
| 638 |
}
|
| 639 |
var dome = [];
|
| 640 |
+
for (var j=0; j<o_.length; j++) {
|
| 641 |
o_[j] = parseInt(o_[j]);
|
| 642 |
dome[j] = new BABYLON.PhotoDome("dome"+j, p[o_[j]].image.url,
|
| 643 |
{
|
|
|
|
| 663 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].position.x = coords[o_[j]].lng;
|
| 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").innerHTML);
|
| 668 |
alert(document.getElementById("depth_video").innerHTML);
|
| 669 |
|
|
|
|
| 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 |
}
|