|
@@ -388,10 +388,7 @@ export default class ActionsHandler {
|
|
|
endRotation += angle/Math.PI*180
|
|
|
|
|
|
let efns = Math.round(endRotation/6)
|
|
|
-
|
|
|
- // if(sfns == efns) return
|
|
|
- // console.error(sfns, efns)
|
|
|
-
|
|
|
+
|
|
|
if(window.currentFrame == null){
|
|
|
window.currentFrame = efns
|
|
|
}
|
|
@@ -401,6 +398,13 @@ export default class ActionsHandler {
|
|
|
else if(window.currentFrame == efns){
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ // 起始帧不需要传入
|
|
|
+ if(efns>sfns) sfns = (sfns + 1) % 60
|
|
|
+ if(efns<sfns) sfns = (sfns - 1 + 60) % 60
|
|
|
+ efns = sfns
|
|
|
+ // console.error(sfns, efns)
|
|
|
+
|
|
|
window.camera_endRotation = endRotation
|
|
|
window.star_angle = angle
|
|
|
console.log('取帧:'+sfns+','+efns);
|
|
@@ -414,7 +418,7 @@ export default class ActionsHandler {
|
|
|
return
|
|
|
}
|
|
|
this.room.sceneManager.materialComponent.initreceveFrames()
|
|
|
- this.room.doRotate()
|
|
|
+ // this.room.doRotate()
|
|
|
//window.room.sceneManager.cameraComponent.mainCamera.rotation.y += angle
|
|
|
//window.room.sceneManager.cameraComponent.setCameraPose(cameraState)
|
|
|
}
|
|
@@ -469,11 +473,11 @@ export default class ActionsHandler {
|
|
|
}
|
|
|
*/
|
|
|
|
|
|
- fetchData({sFrame: sfns, eFrame: efns}){
|
|
|
+ fetchData({type:type, sFrame: sfns, eFrame: efns}){
|
|
|
if(window.workerReady){
|
|
|
this.vDecoder.fetch({
|
|
|
- path: "https://laser-data.oss-cn-shenzhen.aliyuncs.com/test-video/1011",
|
|
|
- range: [sfns, efns],
|
|
|
+ path: "https://laser-data.oss-cn-shenzhen.aliyuncs.com/test-video/2",
|
|
|
+ range: sfns == efns ? [efns] : [sfns, efns],
|
|
|
});
|
|
|
}
|
|
|
else{
|