comparison src/com/aurellem/capture/examples/Advanced.java @ 48:6ecfef90e9eb

system now works with the updated JmeSystem class
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 12:53:31 -0600
parents 5cd9e6c65a93
children 121b6d7e4d3f
comparison
equal deleted inserted replaced
47:74b53dfe369e 48:6ecfef90e9eb
68 public static void main(String[] args) { 68 public static void main(String[] args) {
69 //Logger.getLogger("com.jme3").setLevel(Level.OFF); 69 //Logger.getLogger("com.jme3").setLevel(Level.OFF);
70 Advanced app = new Advanced(); 70 Advanced app = new Advanced();
71 AppSettings settings = new AppSettings(true); 71 AppSettings settings = new AppSettings(true);
72 settings.setAudioRenderer("Send"); 72 settings.setAudioRenderer("Send");
73 JmeSystem.setSystemDelegate(new AurellemSystemDelegate());
73 app.setSettings(settings); 74 app.setSettings(settings);
74 app.setShowSettings(false); 75 app.setShowSettings(false);
75 app.setPauseOnLostFocus(false); 76 app.setPauseOnLostFocus(false);
76
77
78 77
79 try { 78 try {
80 Capture.captureVideo(app, File.createTempFile("advanced",".avi")); 79 Capture.captureVideo(app, File.createTempFile("advanced",".avi"));
81 Capture.captureAudio(app, File.createTempFile("advanced", ".wav")); 80 Capture.captureAudio(app, File.createTempFile("advanced", ".wav"));
82 } 81 }
83 catch (IOException e) {e.printStackTrace();} 82 catch (IOException e) {e.printStackTrace();}
84 83
85 app.start();
86 }
87
88 public static void test(){
89 Advanced app = new Advanced();
90 AppSettings settings = new AppSettings(true);
91 settings.setAudioRenderer("Send");
92 JmeSystem.setSystemDelegate(new AurellemSystemDelegate());
93 app.setSettings(settings);
94 app.setShowSettings(false);
95 app.setPauseOnLostFocus(false);
96 app.start(); 84 app.start();
97 } 85 }
98 86
99 private Geometry makeEar(Node root, Vector3f position){ 87 private Geometry makeEar(Node root, Vector3f position){
100 Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); 88 Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");