World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 06-09-2009, 04:28 PM   #1
kalinwilson
Junior Member
 
Join Date: Jun 2009
Posts: 8
kalinwilson is on a distinguished road
Default Graphics Card Inspection

We have an Eclipse RCP based application that is deployed via Java web start. We've run into situations where users download the app to machines with graphics cards that aren't suitable or optimal for worldwind. Is there support within worldwind/jogl for reporting on the graphics capabilities of the host machine so that we can warn if capabilities are missing?

I didn't find anything in the forum on this when I searched.

Thanks,
Kalin
kalinwilson is offline   Reply With Quote
Old 06-10-2009, 09:48 AM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Have a look at WorldWindHackApps.ShowExtensions.java

Code:
    public void display(javax.media.opengl.GLAutoDrawable glAutoDrawable)
    {
        javax.media.opengl.GL gl = javax.media.opengl.GLContext.getCurrent().getGL();

        boolean fbo = gl.isExtensionAvailable("GL_EXT_framebuffer_object");
        String es = gl.glGetString(javax.media.opengl.GL.GL_EXTENSIONS);
        javax.media.opengl.glu.GLU glu = new javax.media.opengl.glu.GLU();
        String eus = glu.gluGetString(javax.media.opengl.glu.GLU.GLU_EXTENSIONS);
//        Object pexts = glAutoDrawable.getGL().getPlatformGLExtensions();

        String[] esa = es.split(" ");
        String[] eusa = eus.split(" ");
        java.util.Arrays.sort(esa);
        java.util.Arrays.sort(eusa);
        for (String s : esa)
        {
            System.out.println(s);
        }
        for (String s : eusa)
        {
            System.out.println(s);
        }
    }
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 06-10-2009, 04:46 PM   #3
kalinwilson
Junior Member
 
Join Date: Jun 2009
Posts: 8
kalinwilson is on a distinguished road
Default Cool, thanks

Thanks for the pointer!
kalinwilson is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal Error-Unable to locate a compatible graphics adapter Unregistered Install Support 3 10-17-2007 12:26 PM
Graphics card suitable? AlbrechtMehl Install Support 11 07-04-2006 03:02 PM
does VIA\S3G Unichrome IGP card work??? maja Technical Support 2 10-10-2005 05:52 PM
Problems w/ Graphics Adapter caisimu Technical Support 7 06-13-2005 04:41 PM
Intel Graphics Card 92945G/Gl/Ge/Pe/GV dberggren Install Support 1 05-11-2005 09:37 PM


All times are GMT +1. The time now is 12:32 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.