Texture/TextureData to BufferedImage

Is there a way to convert a Texture or TextureData to a BufferedImage? The BufferedImage doesn’t support opening the image formats that I’m looking to use. If this isn’t possible, does anyone know of a loader for SGI (rgb and rgba) files that will load it into a BufferedImage?

Thanks,
qb

Try looking into the JAI (or java advanced imaging, i believe). It supports many more file formats for loading than what comes standard with java.

As far as I can tell it doesn’t support SGI’s rgb or rgba formats. I’ve looked through all the plugins I cound find for ImageIO and any reference to Java Advanced Imaging, and wasn’t able to find anything about supporting the format I’m interested in.

Any other ideas?

If SGI’s file format is known you can always write your own loader :wink:

The TextureIO classes in JOGL already have a built-in SGI RGB image loader that doesn’t involve first loading the data into a BufferedImage. You can take it apart if you want to and make your own loader which produces a BufferedImage.