Login  Register

Re: Java3D+Javafx doesn't work on Java 14

Posted by WoodManEXP on May 13, 2021; 1:52am
URL: https://forum.jogamp.org/Java3D-Javafx-doesn-t-work-on-Java-14-tp4040679p4041139.html

Similar condition is happening here while using jogl-all-2.3.2 on Windows 10 system. Tracing the jogl code this method: jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfigurationGDI
finds nothing when querying for graphics capabilities.

Empty available capabilities
updateGraphicsConfigurationGDI: failed, return false

Which percolates back to the out-of-bounds failure here

winConfig.preselectGraphicsConfiguration(drawableFactory, pfdIDs);
                final int gcIdx = pfdIDOSet.indexOf(Integer.valueOf(winConfig.getPixelFormatID()));
                if( 0 > gcIdx ) {
                    chosenGC = configs[gcIdx];
                    if(DEBUG) {
                        System.err.println("WindowsAWTWGLGraphicsConfigurationFactory: Found matching AWT PFD ID "+winConfig.getPixelFormatID()+" -> "+winConfig);
                    }
                }

Is there perhaps something needed to ensure it finds a graphics capability?

Or maybe an updated jogl-all jar with a fix to that code segment should be used ?

(The jogl-all jars are from Maven)

TY for any advise/thoughts!