I am having trouble with artifacts when I change viewports sizes.
First I have my viewports setup in a quad fashion in each corner.
Then I change to have 3 view ports one centered at the top and 2 more side by side.
The problem I am having is I have artifacts left on the right and left of the top viewport. If I resize the window they go away.
Is there a refresh that I can call once I have adjusted the vieports that I am missing?
I create each viewPort in the following way.
customView = rvWorld.getRenderManager().createMainView(“Custom 1”, cam);
customView.setClearFlags(true, true, true);
customView.attachScene(rvWorld.rootLayer);
customView.addProcessor(getShadowRender());
cam.setViewPort(left, right, bottom, top);
I remove the viewPorts with the following before adding them back in a new order.
customView.removeProcessor(pssmShadowRenderer);
customView.detachScene(rootNode);
customView.clearScenes();
renderManager().removeMainView(customView);
You probably do not change the size from the AWT thread, use java.awt.EventQueue.invokeLater() for window-related operations.