|
@@ -409,7 +409,7 @@ class ExtendView extends View {
|
|
tranCamera(viewport, info, duration, easeName){
|
|
tranCamera(viewport, info, duration, easeName){
|
|
viewport.camera = info.midCamera
|
|
viewport.camera = info.midCamera
|
|
//viewport.camera.matrixWorld = info.endCamera.matrixWorld
|
|
//viewport.camera.matrixWorld = info.endCamera.matrixWorld
|
|
-
|
|
|
|
|
|
+ console.log('tranCamera')
|
|
|
|
|
|
//viewer.setCameraMode(CameraMode.ORTHOGRAPHIC)
|
|
//viewer.setCameraMode(CameraMode.ORTHOGRAPHIC)
|
|
info.midCamera.projectionMatrix.copy(info.startCamera.projectionMatrix)
|
|
info.midCamera.projectionMatrix.copy(info.startCamera.projectionMatrix)
|
|
@@ -418,9 +418,7 @@ class ExtendView extends View {
|
|
info.onUpdate = (progress, delta)=>{
|
|
info.onUpdate = (progress, delta)=>{
|
|
lerp.matrix4(info.midCamera.projectionMatrix, info.endCamera.projectionMatrix)(progress)
|
|
lerp.matrix4(info.midCamera.projectionMatrix, info.endCamera.projectionMatrix)(progress)
|
|
|
|
|
|
- /* console.log('matrixWorld', viewport.camera.position.toArray(), viewport.camera.matrixWorld.toArray())
|
|
|
|
- console.log('projectionMatrix', info.endCamera.zoom, viewport.camera.projectionMatrix.toArray())
|
|
|
|
- */
|
|
|
|
|
|
+
|
|
onUpdate && onUpdate(progress, delta)
|
|
onUpdate && onUpdate(progress, delta)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -432,7 +430,7 @@ class ExtendView extends View {
|
|
})
|
|
})
|
|
viewer.dispatchEvent({type:'camera_changed', viewport:viewer.mainViewport, changeInfo:{}})//update sprite
|
|
viewer.dispatchEvent({type:'camera_changed', viewport:viewer.mainViewport, changeInfo:{}})//update sprite
|
|
|
|
|
|
-
|
|
|
|
|
|
+ console.log('tranCamera end')
|
|
callback && callback()
|
|
callback && callback()
|
|
}
|
|
}
|
|
info.forbitCancel = true
|
|
info.forbitCancel = true
|