Loading 3-band images in GLCanvas

hi all,

I m new to this forum and also to JOGL.
I have just managed to install JOGL and display a Glcanvas on JFrame with scrollbars.
It does flicker on moving the scrollbars??
My next tstep is to load a 3-band image on this canas.
i have 3 image files with extension .geo. one of this contains red band and others green & blue.
How do i display this image after it is clubbed as a single image?
Please bear wid me.

Regards,
Shefali

Have you tried specifying -Dsun.java2d.noddraw on the command line? This is required for all JOGL applications on Winodws for correct behavior. See the users’ guide.

If you can get the data into a BufferedImage then the TextureIO class can convert that to an OpenGL texture for you. See this method in the javadoc and the source code for the TestTexture demo in the jogl-demos workspace.

i m using linux and the option as u said is only for windows.

i have created a Buffer object out of the 3 files and i tried using DrawPixels funcion
but it aborts saying error was generated outside the VM.
Is it not possible to use this method ?
I havent really tried using BufferedImage or the TextureIO but wont be able to do it till 2mrw.
Regards,
Shefali

I would strongly suggest you try to use the BufferedImage class to first assemble your data and then feed it into a texture. This should avoid any OpenGL-related problems and let you focus on getting your data in the right format.

Thanks,that demo did a of things easier for me.
I was finally able to put things togather of course in a crudest way possible.
I found it a headache to put it in the BufferedImage.
thanks a lot and i will continue writing my problems.
Shefali