示例#1
0
 private void stop() {
   LOG.info("stop");
   playing = false;
   time = 0;
   app.setCameraEnabled(true);
   app.getGuiNode().setCullHint(Spatial.CullHint.Inherit);
   app.getNifty().gotoScreen(oldScreen);
   this.sceneNode.setCullHint(Spatial.CullHint.Inherit);
   if (recording) {
     recording = false;
     app.getStateManager().detach(app.getStateManager().getState(VideoRecorderAppState.class));
   }
 }
示例#2
0
 public void record() {
   this.sceneNode.setCullHint(Spatial.CullHint.Always);
   recording = true;
   app.getStateManager().attach(new VideoRecorderAppState(1f));
   LOG.info("recording");
   play();
 }