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)
- The white background is displayed, no gears.
- The gears are displayed normally.
- The gears are displayed but they are near the edge of the frame and are clipped.
- If I drag slowly the frame increases then when I release the mouse button the window updates with one of the three above results.
- 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.
- 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.