Lines Matching refs:cinematic
38 import com.jme3.cinematic.Cinematic;
39 import com.jme3.cinematic.MotionPath;
40 import com.jme3.cinematic.PlayState;
41 import com.jme3.cinematic.events.*;
70 private Cinematic cinematic; field in TestCinematic
105 cinematic = new Cinematic(rootNode, 20); in simpleInitApp()
106 stateManager.attach(cinematic); in simpleInitApp()
122 cinematic.addCinematicEvent(0, new FadeEvent(true)); in simpleInitApp()
124 cinematic.addCinematicEvent(0, new AnimationTrack(teapot, "teapotAnim", LoopMode.DontLoop)); in simpleInitApp()
125 cinematic.addCinematicEvent(0, cameraMotionTrack); in simpleInitApp()
126 … cinematic.addCinematicEvent(0, new SoundTrack("Sound/Environment/Nature.ogg", LoopMode.Loop)); in simpleInitApp()
127 cinematic.addCinematicEvent(3f, new SoundTrack("Sound/Effects/kick.wav")); in simpleInitApp()
128 …cinematic.addCinematicEvent(3, new SubtitleTrack(nifty, "start", 3, "jMonkey engine really kicks A… in simpleInitApp()
129 cinematic.addCinematicEvent(5.1f, new SoundTrack("Sound/Effects/Beep.ogg", 1)); in simpleInitApp()
130 cinematic.addCinematicEvent(2, new AnimationTrack(model, "Walk", LoopMode.Loop)); in simpleInitApp()
131 cinematic.activateCamera(0, "topView"); in simpleInitApp()
135 cinematic.addCinematicEvent(19, new FadeEvent(false)); in simpleInitApp()
158 cinematic.addListener(new CinematicEventListener() { in simpleInitApp()
160 public void onPlay(CinematicEvent cinematic) { in simpleInitApp()
165 public void onPause(CinematicEvent cinematic) { in simpleInitApp()
169 public void onStop(CinematicEvent cinematic) { in simpleInitApp()
185 CameraNode camNode = cinematic.bindCamera("topView", cam); in createCameraMotion()
189 CameraNode camNode2 = cinematic.bindCamera("aroundCam", cam); in createCameraMotion()
256 if (cinematic.getPlayState() == PlayState.Playing) { in initInputs()
257 cinematic.pause(); in initInputs()
258 time = cinematic.getTime(); in initInputs()
260 cinematic.play(); in initInputs()
264 if (cinematic.getPlayState() != PlayState.Playing) { in initInputs()
267 FastMath.clamp(time, 0, cinematic.getInitialDuration()); in initInputs()
268 cinematic.setTime(time); in initInputs()
272 FastMath.clamp(time, 0, cinematic.getInitialDuration()); in initInputs()
273 cinematic.setTime(time); in initInputs()
296 fade.setDuration(1f / cinematic.getSpeed()); in onPlay()
315 fade.setValue(time / cinematic.getSpeed()); in setTime()
317 fade.setValue(1 - time / cinematic.getSpeed()); in setTime()