Incorrect rendering with multiple vtkRenderer while using jogl window.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Starting from java 7 we cannot use anymore the vtkPanel in java application on OSX system (some part of the AWT library are not anymore supported) so we rely exclusively on OpenGL (using JOGL) to support VTK rendering in java application. The problem is that there is a severe issue when we use any JOGL component (vtkJoglPanelComponent or vtkJoglCanvasComponent) for rendering. As soon we have multiple renderer (vtkRenderer) in the render window (vtkOpenGLRenderWindow) the rendering view is limited to the last renderer viewport.
That is a big problem as even using something quite common as the vtkOrientationMarkerWidget to display 3D axis will internally use an extra renderer (with a specific viewport) and make rendering completely clipped. That is something which has been discussed here: http://markmail.org/message/2zozk4jqvlrq6dvv
As simple example to show the problem is to use multiple viewport example from VTK: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MultipleViewports
Using this example inside a vtkJoglPanelComponent will make only the bottom right sphere visible (other part of the screen is blank).