Hi,
    I'm trying to test speed of the OpenGL accelerated Java2D drawing ops (to 
compare to JAI and direct memory manipulation), but when I try to allocate a 
VolatileImage to draw on, I get a message that the OpenGL pipeline failed to 
initialize. I'm trying to allocate a 2000x3000 pix ARGB image, but it doesn't 
look like it's failing because of memory. I have an Ubuntu linux laptop with a 
Radeon GL video card:

ATI Technologies Inc Radeon RV200 LX [Mobility FireGL 7800 M7]

I'm running JDK 1.6.0_02

Here's the output from using "export J2D_TRACE_LEVEL=4":

[I] GLXGC_FindBestVisual: scn=0
[I] GLXGC_InitGLX
[I] OGLFuncs_OpenLibrary
[I] OGLFuncs_InitPlatformFuncs
[I] OGLFuncs_InitBaseFuncs
[I] OGLFuncs_InitExtFuncs
[I] GLXGC_InitGLX: client GLX version=1.4
[I] GLXGC_InitFBConfig: scn=0 vis=0x0
[V]   candidate fbconfigs:
[V]     id=0x28 db=0 alpha=8 depth=24 stencil=0 valid=false (bad match)
[V]     id=0x30 db=0 alpha=8 depth=24 stencil=0 valid=false (bad match)
[V]     id=0x27 db=0 alpha=8 depth=24 stencil=8 valid=false (bad match)
[V]     id=0x2f db=0 alpha=8 depth=24 stencil=8 valid=false (bad match)
[V]     id=0x24 db=1 alpha=8 depth=24 stencil=0 valid=false (bad match)
[V]     id=0x2c db=1 alpha=8 depth=24 stencil=0 valid=false (bad match)
[V]     id=0x23 db=1 alpha=8 depth=24 stencil=8 valid=false (bad match)
[V]     id=0x2b db=1 alpha=8 depth=24 stencil=8 valid=false (bad match)
[E] GLXGC_InitFBConfig: could not find an appropriate fbconfig
[E] GLXGC_FindBestVisual: could not find best visual
[I] GLXGraphicsConfig_getGLXConfigInfo
[I] GLXGC_InitFBConfig: scn=0 vis=0x23
[V]   candidate fbconfigs:
[V]     id=0x23 db=1 alpha=8 depth=24 stencil=8 valid=false (bad match)
[E] GLXGC_InitFBConfig: could not find an appropriate fbconfig
[E] GLXGraphicsConfig_getGLXConfigInfo: could not create fbconfig
Could not enable OpenGL pipeline for default config on screen 0


And this is the code where I'm trying to set it up:

GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsConfiguration gc = 
ge.getDefaultScreenDevice().getDefaultConfiguration();
VolatileImage image = gc.createCompatibleVolatileImage(width, height, 
Transparency.TRANSLUCENT);
Graphics2D g = image.createGraphics();

I'm really new to creating VolatileImages (previously this was BufferedImage 
but it was very slow), so if I'm setting something up wrong please let me know.

Thanks,

Derek
[Message sent by forum member 'dbecker' (dbecker)]

http://forums.java.net/jive/thread.jspa?messageID=240693

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to