capbilities.setRedBits(8);
capbilities.setGreenBits(8);
capbilities.setBlueBits(8);
System.out.println("OpenGL Renderer: cons");
canvas = GLDrawableFactory.getFactory().createGLCanvas(capbilities);
flatRenderer = new FlatRenderer();
//flatRenderer.init(canvas);
addRenderEventListener(flatRenderer);
panel = new JPanel();
panel.setIgnoreRepaint(true);
panel.add(canvas);