<div dir="ltr">Hi all.<div>In my VTK6 / Java7 application, I am experimenting with vtkJoglCanvasComponent and vtkJoglPanelComponent.</div><div>I have some issues with them:</div><div><br></div><div>* vtkJoglCanvasComponent: this is a heavyweight component, and that&#39;s OK with me. But I have rendering issues when I move my container panel (i.e., the parent panel containing the vtkJoglCanvasComponent) to a different location with respect to the original one, e.g., at runtime I move the panel to a different side of a BorderLayout. In this case, the whole painting of the 3D scene at the new location stops working: after the move, I see an &quot;almost empty&quot; 3D view, with some painting artifacts in it. Can you guess why this may happen? Maybe some &quot;glue&quot; code is missing between vtkJoglCanvasComponent component events and JOGL viewports etc.? If made some tests, but I have been unable to fix the issue so far.</div>
<div><br></div><div>* vtkJoglPanelComponent: this is a lightweight component, which should have less &quot;Swing integration&quot; issues compared with vtkJoglCanvasComponent. However, if I use it in my application, the 3D view appears much smaller than it is expected to be. See this screenshot:<br>
</div><div><br></div><div><a href="https://docs.google.com/file/d/0Byrp2xME712ubEJIajVfckllMkE/edit?usp=sharing">https://docs.google.com/file/d/0Byrp2xME712ubEJIajVfckllMkE/edit?usp=sharing</a><br></div><div><br></div><div>
The black area is the size of the vtkJoglPanelComponent&#39;s panel, while the dark gray area is where the 3D scene is rendered to. Can you guess why this happens?</div><div><br></div><div>Even in this case, despite of the lightweight nature, if I programmatically move my container panel at runtime, the rendering of the 3D scene stops working, as described above for the vtkJoglCanvasComponent.</div>
<div><br></div><div>Debugging my application, I checked the size of the vtkRenderWindow connected with the vtkJoglCanvasComponent/vtkJoglPanelComponent, and it seems OK. Hence, it is unclear to me why the 3D scene is rendering so small in this second test case (i.e., when using vtkJoglPanelComponent).</div>
<div><br></div><div>Any hint/suggestion about what I should look at would be greatly appreciated.</div><div><br></div><div>Thanks and best regards,</div><div><br></div><div>Marco</div></div>