Big jogl project - need your help!

Hey everyone!

We’ve been working on this jogl component for about six months.
Unfortunately, we are forced to use GLJPanel.

http://img208.imageshack.us/img208/9475/plot3dslicedsineschemet.png

And here is a link to the demo application: DivShare File - plot3d-demos-Apr-09-2009.7z

Unfortunately, we are having lots of problems with many configurations.

Could you run the demo and post errors here, if any?

Running on Dell Intel Mobile Core 2 Duo T9300 laptop @2.5GHz, 2GB DDR2 RAM, NVIDIA Quadro NVS 140M Video Card with 256 DDR2 MB Ram, on Windows XP 32 bit.

using ‘run-safe.bat’

  1. Clearly the main issue is the startup speed, especially on resize of the window. Once running, it is fine, but the GLJPanel causes all of us headaches.

  2. When it starts, the window is smaller than the contents of the window so only half of the menu on the right side is visible. I have to stretch the window out so the contents is now visible…for example, in the menu I only see half of the text fields, I don’t even see the “cancel” button on the bottom right corner

  3. When you rotate the graph, it is cool programming that you know the orientation and adjust the graph labels accordingly so that they are always from the correct perspective…BUT, this is very annoying. The graph labels keep switching on me and it is hard to focus on the data because you get distracted by the labels changing and switching orientation or switching sides.

  4. The rotation controls buttons…you have to keep clicking on the buttons to effect a change, but it would be nice to be able to hold down a button and have it continue effecting the change so I don’t have to keep clicking.

Other than that, it looks really cool and the interaction with swing components, etc is nice.

Thanks a lot for the feedback!

About the labels, we will consider your suggestions!
The buttons, and the JFrame size are just the drawbacks of the demo, not of the component, but I will fix them.

Can you run run-forced-pipeline.bat and see if FSAA is working?
I am glad that I posted it here. I am also going to post the initialization code to see if you guys can suggest something (we totally might be doing something wrong in the init)

Running: run-forced-pipeline.bat

Apparently I have some issue with the Nimbus look and feel so it failed for me with this error:


java -Dsun.java2d.noddraw=true -Dsun.java2d.opengl=true -Dplot.points=30 -Dswing.defaultlaf=com.sun.java
.swing.plaf.nimbus.NimbusLookAndFeel -jar demo.jar
Exception in thread "AWT-EventQueue-0" java.lang.Error: can't load com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
        at javax.swing.UIManager.initializeDefaultLAF(Unknown Source)
        at javax.swing.UIManager.initialize(Unknown Source)
        at javax.swing.UIManager.maybeInitialize(Unknown Source)
        at javax.swing.UIManager.getUI(Unknown Source)
        at javax.swing.JPanel.updateUI(Unknown Source)
        at javax.swing.JPanel.<init>(Unknown Source)
        at javax.swing.JPanel.<init>(Unknown Source)
        at javax.swing.JPanel.<init>(Unknown Source)
        at demo.complex_demo.ComplexDemo.$$$setupUI$$$(ComplexDemo.java)
        at demo.complex_demo.ComplexDemo.<init>(ComplexDemo.java:89)
        at demo.complex_demo.ComplexDemo$31.run(ComplexDemo.java:685)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

So I removed the nimbus look and feel from the bat file, but I only see the following window…see attached pic.jpg

When I resize the window, it doesn’t repaint and feels like it is stuck.

Wow… OK, I’ll post the initialization code ASAP
What JVM are you using? (java -version)

I’m using java 1.6.0_06

Switching to GLCanvas…
It is a shame that GLJPanel is unusable in a production-quality application.

and don’t forget to remove the -Dsun.java2d.opengl=true flag since you probably don’t need it anymore. This should make your app more reliable in general.