freealise commited on
Commit
37c04cf
·
verified ·
1 Parent(s): 1551cee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -755,7 +755,7 @@ async(c, o, p, d, n, m)=>{
755
  }
756
  buffer = ctx.getImageData(0, 0, video.videoWidth, video.videoHeight).data;
757
  applyDisplacementMapFromBuffer(BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1], buffer, video.videoWidth, video.videoHeight, 0, 1, null, null, true);
758
- setTimeout(updateMap, 40);
759
  }
760
  window.requestMap = requestMap;
761
 
@@ -1006,8 +1006,6 @@ window.stop_recording = stop_recording;
1006
  mesh.position.x = coords[counter].lng;
1007
  mesh.rotation.y = coords[counter].heading / 180 * Math.PI;
1008
  mesh.rotation.z = -coords[counter].pitch / 180 * Math.PI;
1009
-
1010
- alert(mesh.position.z +" "+ mesh.position.x);
1011
 
1012
  return mesh;
1013
  }
 
755
  }
756
  buffer = ctx.getImageData(0, 0, video.videoWidth, video.videoHeight).data;
757
  applyDisplacementMapFromBuffer(BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1], buffer, video.videoWidth, video.videoHeight, 0, 1, null, null, true);
758
+ setTimeout(updateMap, 1000);
759
  }
760
  window.requestMap = requestMap;
761
 
 
1006
  mesh.position.x = coords[counter].lng;
1007
  mesh.rotation.y = coords[counter].heading / 180 * Math.PI;
1008
  mesh.rotation.z = -coords[counter].pitch / 180 * Math.PI;
 
 
1009
 
1010
  return mesh;
1011
  }