Update app.py
Browse files
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,
|
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 |
}
|