Quantcast

Java3D window blinking

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Java3D window blinking

world
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?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

gouessej
Administrator
This post was updated on .
Hi

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?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

world
Hi,

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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

gouessej
Administrator
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

world
I have tried some previous java versions.
A small summary:

jre-1.6.45 - OK,
jre-1.7.0   - fail,
jre-1.7.51 - fail,
jre-1.7.67 - fail,
jre-1.7.72 - fail.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

gouessej
Administrator
Thank you very much for your investigation and your patience. There is probably something particular with your machines. Please run this applet on all machines concerned by this bug:
http://jogamp.org/deployment/jogamp-current/jogl-applet-version-napplet.html

and give us the results.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

pierre
This post was updated on .
In reply to this post by gouessej
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.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

gouessej
Administrator
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Java3D window blinking

runiter
In reply to this post by pierre
I had a similar problem with Java3D in the past. I fixed it by adding the following code:

canvas.addComponentListener(new ComponentAdapter() {
        @Override
        public void componentResized(final ComponentEvent e) {
                canvas.invalidate();
        }
});
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Loading...