/*
* Canvas
*/
JPanel panel = new JPanel();
Canvas3DJPanel canvasPanel = new Canvas3DJPanel( OpenGLLayer.JOGL_AWT );
panel.add(canvasPanel);
canvasPanel.setSize(800, 600);
canvasPanel.setBounds(0, 0, 800, 600);
tabbedPane.addTab(Messages.getString("DigiBotsApplication.0"), panel); //$NON-NLS-1$
canvasPanel.getCanvas().setBackgroundColor(Colorf.WHITE);
canvasPanel.enableLighting();
/*
* Environment
*/
this.env = new Xith3DEnvironment(this);
env.addCanvas(canvasPanel);
/*
* Texture filters
*/
Texture.setDefaultFilter(TextureFilter.TRILINEAR);
/*
* Input
*/
InputSystem.getInstance().registerNewKeyboardAndMouse(canvasPanel.getCanvas().getPeer());
/*
* Render passes
*/
BranchGroup perspGroup = env.addPerspectiveBranch().getBranchGroup();