Fullscreen problems

When I run in fullscreen mode it looks like I some times don’t get a conext. This is what I do:


myDevice = GraphicsEnvironment.getLocalGraphicsEnvironment()
            .getDefaultScreenDevice();
            frame = new JFrame();
            frame.setUndecorated(true);
            graphicsDevice().setFullScreenWindow(frame);
            if (graphicsDevice().isDisplayChangeSupported()) {
                  graphicsDevice().setDisplayMode(displayMode);
            }
            canvas = A9RenderFactory.getFactory().createJOGLCanvas(this,capabilities);
            frame.getContentPane().add(canvas);
            frame.setVisible(true);

Bug or feature :wink:
// Tomas

Does the JCanyon demo work for you? I’ve found that some workarounds are currently necessary on most platforms to get proper fullscreen with -Dsun.java2d.noddraw=true. Download the source code for the JCanyon demo and look at the terrain.DBFlyer initialization code. If that doesn’t help please post again or file a simplified test case with the JOGL Issue Tracker.

BTW, what platform are you running on?

We experienced this problem occasionally on several different system running winxp and win2k with different graphics cards with the earlier releases of JOGL. I guess that most cards that we have tried are NVIDIA GF3 to GF6.

The current system is Java 1.4.2_07, Athlon, Win2k and Nvidia GF3 and latest drivers and latest release of JOGL. I’ll look at the demo and make some stability test later.

Thanks
// Tomas

For fullscreen mode correctness with JOGL you must specify -Dsun.java2d.noddraw=true. Unfortunately that exposes some bugs in the GDI fullscreen path in the JDK which require application workarounds as in the JCanyon demo. Once those workarounds were in place I found fullscreen support to be very robust.

It seems to work. I’ll try to do some stability testing on a couple of different systems here at Agency9.

Thanks
Tomas

The solution seems to be stable :slight_smile: