def _Tick(self, progress, camera):
     progress = max(0, (progress - self.animationStartsAt) / (1 - self.animationStartsAt))
     camera.fov = mathUtil.Lerp(self.fovStart, self.fovEnd, 1.0 - math.pow(1.0 - progress, 2.0))
 def _Tick(self, progress, camera):
     progress = math.pow(progress, 4.0)
     camera.fov = mathUtil.Lerp(self.fovStart, self.fovEnd, progress)
Example #3
0
 def _Tick(self, progress, cameraContext):
     cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp(
         self.startFov, self.endFov, progress)
 def Tick(self, camera, simTime, clockTime):
     t = blue.os.TimeDiffInMs(self.timeStart, simTime) / 1000.0
     progress = self.progressCurve.GetValueAt(t)
     camera.translationFromParent = mathUtil.Lerp(self.initialTranslation, 0, progress)
Example #5
0
 def _Tick(self, progress, cameraContext):
     progress = pow(progress, self.accelerationPower)
     translation = mathUtil.Lerp(self.start, self.end, progress)
     cam = cameraContext.GetSpaceCamera()
     cam.translationFromParent = cameraContext.CheckTranslationFromParent(
         translation)
Example #6
0
 def _Tick(self, progress, cameraContext):
     cameraContext.GetSpaceCamera().translationFromParent = mathUtil.Lerp(
         self.startTrZ, self.endTrZ, progress)
 def _Tick(self, progress, cameraContext):
     progress = math.pow(progress, 4.0)
     cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp(
         self.fovStart, self.fovEnd, progress)
Example #8
0
 def _Tick(self, progress, cameraContext):
     transl = mathUtil.Lerp(self.cambeg, self.camend, progress)
     checkedTranslation = cameraContext.CheckTranslationFromParent(
         transl, source=self.source)
     cameraContext.GetCameraByName(
         self.source).translationFromParent = checkedTranslation
 def _Tick(self, progress, cameraContext):
     progress = max(0, (progress - self.animationStartsAt) /
                    (1 - self.animationStartsAt))
     cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp(
         self.fovStart, self.fovEnd, 1.0 - math.pow(1.0 - progress, 2.0))
Example #10
0
 def _Tick(self, progress, camera):
     camera.fieldOfView = mathUtil.Lerp(self.startFov, self.endFov,
                                        progress)
Example #11
0
 def _Tick(self, progress, camera):
     camera.translationFromParent = mathUtil.Lerp(self.startTrZ,
                                                  self.endTrZ, progress)
Example #12
0
 def _Tick(self, progress, camera):
     progress = pow(progress, self.accelerationPower)
     translation = mathUtil.Lerp(self.start, self.end, progress)
     camera._AddToEyeOffset(translation)
Example #13
0
 def _Tick(self, progress, camera):
     transl = mathUtil.Lerp(self.cambeg, self.camend, progress)
     checkedTranslation = camera.CheckTranslationFromParent(transl)
     camera.translationFromParent = checkedTranslation