Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dominic2

Pages: [1]
1
Support / Re: JMenuBar menu's are hidden by OpenGL canvas
« on: January 28, 2009, 06:01:48 pm »
I found a solution. Swing purists are not going to like it, but it works for me. I use Menu (from awt) instead of JMenu (from swing). Menu use the OS's menu bar and this one isn't displayed under the 3D view.

2
Support / Re: Swing components around the GLCanvas flicker.
« on: January 28, 2009, 04:44:02 pm »
If by "freaky desktop-enhancement stuff" you mean the nView Desktop Manager, we just tried turning it off, but it didn't help. I haven't tried glForceFinish yet.

Thank you.

3
Support / Re: Swing components around the GLCanvas flicker.
« on: January 23, 2009, 05:37:11 pm »
Yes, it work fine on all other machines. I suspect some weirdness in the laptop driver to cause this... The Java version on the laptop is 1.6 r07. I'm sorry about the test case, but I doubt I will have time to do it. If we don't find a solution without it, I may be able to do it, but I can't make any promises about that.

Thank you.

4
Support / Swing components around the GLCanvas flicker.
« on: January 23, 2009, 04:51:12 pm »
Hi,

I have a problem that I have seen only on a laptop with a NVIDIA Quadro FX770M (most recent graphic drivers) so far. We have an application windows with a GLCanvas in the center and other swing components around it. For a reason unknown to me, the swing components around the GLCanvas flicker. They don't appear and disappear, instead they keep switching (visually only) between their initial state and their current state very fast. The only work around that we have found so far for this is to keep the NVIDIA Control panel window open while the application is running. For some reason, this fixes the problem, but it's not a really acceptable solution...

I use the OpenGL renderer only. I use the following code to initialise the OpenGL renderer and then I disable the software renderer :

Code: [Select]
frameBuffer.enableGLCanvasRenderer(IRenderer.MODE_OPENGL);
When rendering, I use the following code :

Code: [Select]
        frameBuffer.clear();
        world.renderScene(frameBuffer);
        world.draw(frameBuffer);
        frameBuffer.update();
        frameBuffer.display(graphics);
        canvas.repaint();

Does anybody knows a solution to this problem please ? Thank you very much.

5
Support / JMenuBar menu's are hidden by OpenGL canvas
« on: January 22, 2009, 08:32:03 pm »
Hi,

I'm trying to put a JMenuBar in my application window. The menu bar itself is displayed correctly. Unfortunatly, the menus that appear when the user click on a menu of the menu bar are hidden by the OpenGL canvas in the window. The canvas is always rendered on top of the menus.

I use the OpenGL renderer only. I use

Code: [Select]
frameBuffer.enableGLCanvasRenderer(IRenderer.MODE_OPENGL);
to initialise the OpenGL renderer and then I disable the software renderer. When rendering, I use the following code :

Code: [Select]
        frameBuffer.clear();
        world.renderScene(frameBuffer);
        world.draw(frameBuffer);
        frameBuffer.update();
        frameBuffer.display(graphics);
        canvas.repaint();

Is there something I can change to allow the menu to be displayed correctly ?

Thank you for your help.

Pages: [1]