Resizing of frame problem

I’m trying to implement a JOGL application that will allow the user to resize the frame and have everything that has been drawn in the frame (GLCanvas) update as the frame is resized (by calling the display method in the appropriate way). Currently as I resize the frame the window and contents do update but some times instead of updating the frame is just filled with the gray background. I only have access to a system with the Intel Extreme Graphics chip and I think that it may be causing the problem. I have reviewed a lot of postings on this forum and that graphics chip seems to be the cause of a lot of problems.

To determine if the problem was mine I did some tests with the ‘gears’ demo to see how it reacted to resizing of the frame while it was running. I commented out the code that creates the Animator so that only what has been drawn will be updated when the frame is resized.

I saw the following results when resizing the frame: (and they happen randomly)

  1. The white background is displayed, no gears.
  2. The gears are displayed normally.
  3. The gears are displayed but they are near the edge of the frame and are clipped.
  4. If I drag slowly the frame increases then when I release the mouse button the window updates with one of the three above results.
  5. If I drag slowly the frame redraws the gears and they actually rotate. But the display only updates for a few seconds as I’m dragging the mouse, then I just start getting the white background. If I drag quickly they don’t rotate.
  6. The gears are displayed, the white border increases in size as the frame size increases, when the mouse button is released the gears sometimes do and sometimes don’t resize to the correct size.

I’m currently using JOGL JSR231 beta 03.

The drivers on the Intel Exteme Graphics card are version 6.14.10.3924 from 9/30/2004 and I can’t update them since I don’t have the permissions to update drivers.

Could someone make the same changes to the Gears.java code and verify the results that I’m getting?

Comment out the following in the main method and the run the new code:

// final Animator animator = new Animator(canvas);

// animator.stop();

// animator.start();

Also, what changes would it take to have the gears resize as the frame is being resized with the animator turned off?

I also tried uncommenting the lines to use DebugGL and nothing was ever displayed when resizing and getting any of the results that are posted above.

I also tried running with “-Dsun.java2d.noddraw=true” and it made no difference.

Thanks for taking the time to test this and for any responses.

david.

Some additional info that I forgot:

Running Java 1.5.06 on Windows 2000

I tried changing the ‘display()’ and ‘resize()’ methods to be synchronized but that didn’t help either.

david.

There have been some changes in the nightly JOGL builds for Intel Extreme graphics workarounds; could you try the current build on the JOGL home page and see if it behaves any differently?

Ken,

The behavior was exactly the same. :frowning:

Is there any more information I can provide?

BTW, where did the com.sun.opengl.util.Version.getVersion() method go? I tried to use it to verify the version of JOGL I was using but I can’t find the Class / method any more.

Thanks,
david.

Sorry but I don’t have comparable hardware to test on. I would recommend you ask your system administrator if you can upgrade the drivers on your machine.

I have heard that LWJGL’s AWTGLCanvas seems to behave better on this graphics hardware than JOGL’s GLCanvas. You may want to try it. I would eventually like to get to the bottom of why JOGL does not seem to behave well on this hardware but due to time constraints I don’t see that happening in the near future.

This information is now in the manifest and can be retrieved via java.lang.Package. See the demos.misc.VersionInfo in the jogl-demos workspace.