@ -127,8 +127,6 @@ public class SceneApplication extends Application implements LookupProvider, Loo
createCanvas ( ) ;
createCanvas ( ) ;
startCanvas ( true ) ;
startCanvas ( true ) ;
getContext ( ) . setAutoFlushFrames ( true ) ;
getContext ( ) . setSystemListener ( this ) ;
progressHandle . progress ( "initialize Base Application" , 1 ) ;
progressHandle . progress ( "initialize Base Application" , 1 ) ;
// if (!java.awt.EventQueue.isDispatchThread()) {
// if (!java.awt.EventQueue.isDispatchThread()) {
// java.awt.EventQueue.invokeAndWait(new Runnable() {
// java.awt.EventQueue.invokeAndWait(new Runnable() {
@ -180,9 +178,6 @@ public class SceneApplication extends Application implements LookupProvider, Loo
previewProcessor = new ScenePreviewProcessor ( ) ;
previewProcessor = new ScenePreviewProcessor ( ) ;
previewProcessor . setupPreviewView ( ) ;
previewProcessor . setupPreviewView ( ) ;
// enable depth test and back-face culling for performance
renderer . applyRenderState ( RenderState . DEFAULT ) ;
getProgressHandle ( ) . progress ( "Prepare Camera" , 4 ) ;
getProgressHandle ( ) . progress ( "Prepare Camera" , 4 ) ;
camLight = new PointLight ( ) ;
camLight = new PointLight ( ) ;
camLight . setColor ( ColorRGBA . White ) ;
camLight . setColor ( ColorRGBA . White ) ;
@ -244,7 +239,9 @@ public class SceneApplication extends Application implements LookupProvider, Loo
guiNode . updateGeometricState ( ) ;
guiNode . updateGeometricState ( ) ;
toolsNode . updateGeometricState ( ) ;
toolsNode . updateGeometricState ( ) ;
getStateManager ( ) . render ( renderManager ) ;
getStateManager ( ) . render ( renderManager ) ;
if ( context . isRenderable ( ) ) {
renderManager . render ( tpf ) ;
renderManager . render ( tpf ) ;
}
getStateManager ( ) . postRender ( ) ;
getStateManager ( ) . postRender ( ) ;
} catch ( Exception e ) {
} catch ( Exception e ) {
handleError ( e . getMessage ( ) , e ) ;
handleError ( e . getMessage ( ) , e ) ;