Hi,
Referring to my last posting (empty subject field, sorry):
I read the mail about type/format combinations which shouldn't cause
excess copying/conversions (for textures), and tried changing type/format
in my off-screen rendering code to:
b = BufferedImage(256, 256, BufferedImage.TYPE_BYTE_GRAY);
i = ImageComponent2D(ImageComponent2D.FORMAT_CHANNEL8, b, true, true);
And got:
Exception occurred during event
dispatching: java.lang.ArrayIndexOutOfBoundsException: 65539
at
javax.media.j3d.ImageComponentRetained.copyBufferedImageWithFormatConversion(Compiled
Code)
at
javax.media.j3d.ImageComponent2DRetained.getImage(ImageComponent2DRetained.java:397)
at javax.media.j3d.ImageComponent2D.getImage(ImageComponent2D.java:264)
Where again getImage call is there because otherwise BufferedImage ends up
being all black...
Then I changed type/format to TYPE_4BYTE_ABGR/FORMAT_RGBA8 and all worked
fine. (except that getImage is still needed)
Based on these examples, it seems that by reference flag doesn't work at
all for off-screen rendering?
-- Matti Hietaj�rvi
===========================================================================
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".