Hi,
I want to write my java client application using jogl. But there are always some rendering problems with the grapics card hardware acceleration function on my laptop.
I use GLJPanel in my code.
- If I turn off hardware acceleration (Right click desktop – > go to Display properties by selecting “properties” --> Settings --> Advanced --> Troubleshoot --> Hardware acceleration, set hardware acceleration to “None”), the rendering in the client application works well.
- If I turn on the hardware acceleration and set it to “Full”, the rendering in the client application doesn’t work well. The background of the panel is distorted and filled with snippets of some other old graphs
- If I run this application on another old desktop with different version of graphics card driver, it works well.
I believe this has something to do with the driver version of the Mobile Intel® 965 Express Chipset Family on my laptop. The current driver version is 6.14.10.4831. But I really need to make it work on this laptap. Could anyone give me some hints on how to fix the problem?
Thanks
The configuration of my laptap is as below:
Dell Latitude D630
Intel® Core™2 Duo CPU
T7300 @ 2.00GHz
777 MHz, 1.99 GB of RAM
Physical Address Extension
Code:
package jogl;
import java.awt.Color;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLJPanel;
import javax.swing.JFrame;
public class MyJoglTest {
public static void main(String[] args) {
JFrame frame = new JFrame("Hello World!");
/* Jogl panel */
GLCapabilities glCaps = new GLCapabilities();
glCaps.setHardwareAccelerated(true);
glCaps.setDoubleBuffered(true);
GLJPanel mainPanel = new GLJPanel(glCaps);
mainPanel.setBackground(Color.RED);
frame.add(mainPanel);
frame.setSize(600, 600);
frame.setVisible(true);
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
}