freealise commited on
Commit
f98d46b
·
verified ·
1 Parent(s): 5e550ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -781,8 +781,7 @@ async(c, o, p, d, n, m, s)=>{
781
  }
782
  buffer = ctx.getImageData(0, 0, video.videoWidth, video.videoHeight).data;
783
  applyDisplacementMapFromBuffer(videoDomeMesh, buffer, video.videoWidth, video.videoHeight, 0, 1, null, null, true);
784
- alert('!');
785
- requestAnimationFrame(requestMap);
786
  } catch(e) {alert(e)}
787
  }
788
  window.requestMap = requestMap;
@@ -1051,6 +1050,9 @@ window.videoPlay = videoPlay;
1051
  position.toArray(positions, index);
1052
  }
1053
  mesh.setVerticesData(BABYLON.VertexBuffer.PositionKind, positions);
 
 
 
1054
  return mesh;
1055
  } catch(e) {alert(e)}
1056
  }
 
781
  }
782
  buffer = ctx.getImageData(0, 0, video.videoWidth, video.videoHeight).data;
783
  applyDisplacementMapFromBuffer(videoDomeMesh, buffer, video.videoWidth, video.videoHeight, 0, 1, null, null, true);
784
+
 
785
  } catch(e) {alert(e)}
786
  }
787
  window.requestMap = requestMap;
 
1050
  position.toArray(positions, index);
1051
  }
1052
  mesh.setVerticesData(BABYLON.VertexBuffer.PositionKind, positions);
1053
+
1054
+ alert('!');
1055
+ requestAnimationFrame(requestMap);
1056
  return mesh;
1057
  } catch(e) {alert(e)}
1058
  }