Grayscale Java3D

Is there a way to render a scene in grayscale into an offscreen canvas and then grab it into BYTE_GRAY bufferedimage ?

I used something like:


        // create the offscreen buffer
        pic = new BufferedImage(width,height,BufferedImage.TYPE_BYTE_GRAY);
        offscreenBuffer = new ImageComponent2D(ImageComponent2D.FORMAT_CHANNEL8, pic, true, false);
        offscreenBuffer.setCapability(ImageComponent2D.ALLOW_IMAGE_READ);
        this.setOffScreenBuffer(offscreenBuffer);

But the above gives the error “Canvas3D: Offscreen rendering does not support FORMAT_CHANNEL8”

Mik