freealise commited on
Commit
a0dc8c3
·
verified ·
1 Parent(s): 2d8636f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -684,6 +684,12 @@ async(c, o, p, d, n, m, s)=>{
684
  let mesh = q[i];
685
  mesh.dispose(false, true);
686
  }
 
 
 
 
 
 
687
  BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].scaling.z = -1;
688
  BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.diffuseTexture.hasAlpha = true;
689
  BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.useAlphaFromDiffuseTexture = true;
@@ -984,6 +990,7 @@ function seek(t) {
984
  window.seek = seek;
985
 
986
  function videoPlay() {
 
987
  videoDome.videoTexture.video.loop = true;
988
  video.loop = true;
989
  videoDome.videoTexture.video.play();
@@ -1045,15 +1052,7 @@ window.videoPlay = videoPlay;
1045
 
1046
  position.toArray(positions, index);
1047
  }
1048
-
1049
  mesh.setVerticesData(BABYLON.VertexBuffer.PositionKind, positions);
1050
-
1051
- mesh.rotationQuaternion = null;
1052
- //mesh.position.z = coords[counter].lat;
1053
- //mesh.position.x = coords[counter].lng;
1054
- mesh.rotation.y = coords[counter].heading / 180 * Math.PI;
1055
- mesh.rotation.z = coords[counter].pitch / 180 * Math.PI;
1056
-
1057
  return mesh;
1058
  }
1059
  window.applyDisplacementMapFromBuffer = applyDisplacementMapFromBuffer;
 
684
  let mesh = q[i];
685
  mesh.dispose(false, true);
686
  }
687
+ BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotationQuaternion = null;
688
+ //BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].position.z = coords[counter].lat;
689
+ //BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].position.x = coords[counter].lng;
690
+ BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.y = coords[counter].heading / 180 * Math.PI;
691
+ BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].rotation.z = -coords[counter].pitch / 180 * Math.PI;
692
+
693
  BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].scaling.z = -1;
694
  BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.diffuseTexture.hasAlpha = true;
695
  BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.useAlphaFromDiffuseTexture = true;
 
990
  window.seek = seek;
991
 
992
  function videoPlay() {
993
+ alert(video.src);
994
  videoDome.videoTexture.video.loop = true;
995
  video.loop = true;
996
  videoDome.videoTexture.video.play();
 
1052
 
1053
  position.toArray(positions, index);
1054
  }
 
1055
  mesh.setVerticesData(BABYLON.VertexBuffer.PositionKind, positions);
 
 
 
 
 
 
 
1056
  return mesh;
1057
  }
1058
  window.applyDisplacementMapFromBuffer = applyDisplacementMapFromBuffer;