Re: The screen turns blank when I resize the window
Posted by philjord on Mar 06, 2016; 10:55am
URL: https://forum.jogamp.org/The-screen-turns-blank-when-I-resize-the-window-tp4036401p4036438.html
OK,
so you've given us a SSCCE in the form of the Pyramid example, and you've tried the code I suggested (Java3DSimpleTest).
I presume, given that you mentioned the sync work around that's on the net, you also tried
Canvas3D canvas3D = new Canvas3D(SimpleUniverse.getPreferredConfiguration()){
public void paint(Graphics g) {
try {
Thread.sleep(100);
} catch (Exception e){}
super.paint(g);
// Toolkit.getDefaultToolkit().sync();
};
?? If not please do :) .
Can you confirm that the grey is coming from the Canvas3D component parent by putting canvas3D.setBackground(new Color(1,0,1)); in and see the grey become a pink. If it doesn't then the problem is probably not with Canvas3D redrawing and we can attack other avenues of investigation.
Thanks,
Phil.