Hi i want to write additional textual Information over
the 3D Scene.

I tried it with a raster. In front of the complete
Scene. I tried to make the black content to be
transparent. But the black content in not transparent.

I tried it with the following.

        Raster raster = new Raster();
        raster.setPosition(new Point3f(0,0,-1));
        raster.setOffset(10,10);
        raster.setSize(100,100);
        raster.setType(Raster.RASTER_COLOR);

raster.setCapability(Raster.ALLOW_IMAGE_WRITE);
        BufferedImage image2D = new
BufferedImage(100,100,BufferedImage.TYPE_4BYTE_ABGR);
        Graphics2D gr2D = image2D.createGraphics();
        gr2D.setColor(Color.red);
        gr2D.fillOval(10,10,100,100);
        WritableRaster writeRaster =
image2D.getAlphaRaster();
        int [] array = new int[1];
        array[0] = 0;
        for (int x = 0; x < 100 ; x++) {
            for (int y = 0; y < 100 ; y++) {
                if (image2D.getRGB(x,y) == 0) {
                    writeRaster.setPixel(x,y,array);
                }
            }
        }
        raster.setImage(new
ImageComponent2D(ImageComponent2D.FORMAT_RGBA,image2D));

        objRoot.addChild(new Shape3D(raster));


Do you have any solution hints?

CU Sebastian

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

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

Reply via email to