Login  Register

Re: Custom Raster

Posted by JeanPhi on Feb 17, 2014; 4:41pm
URL: https://forum.jogamp.org/Custom-Raster-tp4031610p4031614.html

Yes, I'm talking about the sun.awt.image.IntegerInterleavedRaster. In fact I'm trying to intercept Raster updates to forward them to a JavaFX Canvas. I will take a look to custom GPU stuff, but this is a temporary solution so I would like to keep it as simple as possible.

The story starts with Java3D which uses an ImageComponent2D as offscreen buffer. This buffer contains a BufferedImage which itself contains a raster. If I use an instance of IntegerInterleavedRaster the rendering is done without any problem. But if I provide even a subclass of IntegerInterleavedRaster, then the rendering is not performed.

It seems the class type of the raster is a key of the system. I would like to add my own key/raster. Is there a way to do so?

JP