Chad Zalkin wrote:
I am attempting to do some image editing on my canvas. Specifically I want to directly edit the pixels of the canvas. Is there any way to get a raster (for example) of the current frame, edit the data, and pass it back to be displayed? If possible, is this an expensive operation?
There is, but the restriction is you can only do this in immediate mode rendering. Have a look at the Raster class. The top of the javadoc says this:
"In addition to being used as a type of geometry for drawing, a Raster may be used to readback pixel data (color and/or z-buffer) from the frame buffer in immediate mode." To do the reading, have a look at GraphicsContext3D.readRaster(). -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== 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".
