Exemple #1
0
   def frame(self):
      if not self.rotating:
         return

      frameTime = pyvrui.getCurrentFrameTime()
      for i in range(3):
         self.modelAngles[i] += self.rotationSpeeds[i]*frameTime
         self.modelAngles[i]  = self.modelAngles[i] % 360.0
      pyvrui.requestUpdate()
   def frame(self):
      newFrameTime = pyvrui.getApplicationTime()

      if self.rotateEarth:
         self.rotationAngle += self.rotationSpeed*(newFrameTime-self.lastFrameTime)
         if self.rotationAngle >= 360.0:
            self.rotationAngle -= 360.0

      pyvrui.requestUpdate()

      self.lastFrameTime = newFrameTime
Exemple #3
0
   def frame(self):
      if not self._frame:
         return

      self._frame()
      pyvrui.requestUpdate()
Exemple #4
0
   def frame(self):
      if self._frame:
         self._frame()
         pyvrui.requestUpdate()

      self.frame_count += 1