Window with java3D content very often becomes gray,
it does not repaint/update the content correctly in many cases:
1. Switching between different windows, when it lost focus;
2. Minimize/maximize window;
3. Drag the window.
When window get focus again and user begin mouse interaction with it,
then the content is displayed again.
Notes:
1) Bug is Dependent on java version:
jre-1.6.45 - OK,
jre-1.7.67 - bug.
2) Bug is Independent on java3D version.
It have place both in java3D-1.6.pre11 and java3-1.5.2.
3) Bug is Independent on Windows version.
It have place both in WinXP-64bit and Win8-64bit.
4) Bug is reproducible on any simple java3D example from internet.
Any advices on how to workaround the bug?
May be redrawing system was changed in new java-1.7 version?
And java3D doesn't take into account this changes?
Maybe it's a regression in Java itself, a minor update shouldn't break AWT and we shouldn't have to change our code. Do you reproduce this bug with Java 1.7 update 60 and 65?
Thank you for your advice.
I have tried the last version jdk-7u72 (older versions now need registration to download).
But the problem is the same - window blinking. The test system:
jdk-7u72 + java3D-1.6.pre11 + WinXP-64bit.
Currently the only remedy that helps - is jdk-6u45.
I wonder, is anybody else face the same problem?
It seems it should be well known.
Please register and try with older versions too. I'm not under Windows and I think that other people would have complained if they were concerned by this bug. If you don't try with older versions of Java 1.7, we will have no chance to find which update introduces a regression and Java 1.6 is a no go for lots of applications.
I develop my app on the MacOS (10.11) with Eclipse. I updated to the JOGAMP Java3D 1.6 and use the latest Oracle Java 8 u102., and everything works great on the Mac.
But when I port my Eclipse Workspace over to my Windows64 10 laptop, and run the app, the app has the "window non-refresh" problem. Actually, the Swing parts of the window are repainting correctly, but the Canvas3D panel doesn't repaint after:
1) iconify the Window (shrink down to an icon in the dock), then re-inflate window
2) dragging the window so that a portion is clipped at the edge of the display.
Actually, if I look closely, after the re-inflate window, the correct 3D rendering is up there for a split-second, then the Canvas3D area is painted over solid white.
Do you have the same problem with JCanvas3D? Do you use the very latest build i.e Java3D 1.6.0 pre 12? Some minor changes might mitigate this bug in Java3D 1.7.0 pre 1.