Re: Instability with nvidia 260 drivers?
Posted by Euclid on May 01, 2011; 9:11pm
URL: https://forum.jogamp.org/Instability-with-nvidia-260-drivers-tp1721802p2887449.html
I've been running a small app to help myself learn JOGL with a GLJPanel on Windows XP without any trouble. I just tried to run it on a new laptop with Windows 7 64 (with an nvidia card, 270 drivers) and the app freezes up.
If I run without my GLJPanel everything is fine.
I tried the define above but it didn't work for me. I'm posting my init calls to jogl below to see if anyone can point out anything glaring. I'm using jogl 2 signed candidate (dated March 3, 2011).
Thanks in advance for any help. I'm a bit stuck (I've tried the Dell drivers as well). Hopefully it's the way I'm using JOGL.
From a "main" class:
GLProfile glprofile = GLProfile.getDefault();
GLCapabilities glcapabilities = new GLCapabilities( glprofile );
myPanel = new MyGLJPanel(glcapabilities,size);
The init() method for MyGLJPanel is:
public void init(GLAutoDrawable drawable) {
GL2 gl = drawable.getGL().getGL2();
gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
gl.glEnable(GL.GL_DEPTH_TEST);
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
gl.glFlush();
}
I invoke draw() as I need to (not using an FPSAnimator). At the moment, draw is just rotating a cylinder.
public void display(GLAutoDrawable drawable) {
GL2 gl = drawable.getGL().getGL2();
gl.glMatrixMode(GL2.GL_MODELVIEW);
gl.glLoadIdentity();
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
gl.glPushMatrix();
gl.glTranslatef(0.0f, 0.0f, 0.0f);
setGreen(gl);
float fRadius = 10.0f;
float fHeight = 30.0f;
int fSlices = 40;
int fStacks = 1;
// some rotation code here
// draw the cylinder
fGlut.glutWireCylinder(fRadius, fHeight, fSlices, fStacks);
gl.glPopMatrix();
gl.glFlush();
}