> Date: Wed, 10 May 2000 22:33:57 +0800
> From: ping <[EMAIL PROTECTED]>
>
>
> And now , i want to compress an .flt file or an .wrl file(the scene is
> obtained through flt loader or vrml loader), but neither can be
> successful. the exception message is:
>
> java.lang.ArrayIndexOutOfBoundsException: 0
> at com.sun.j3d.utils.compression.CompressionStream.<init>
>(CompressionStream.java:1233)
>From the line number and exception, it appears you are passing a zero-length
array of Shape3D objects to the CompressionStream constructor.
CompressionStream should check for this condition and instead throw an
IllegalArgumentException with appropriate text.
You appear to have a bug, but otherwise you seem to be taking a good approach
to compressing .flt and .wrl files.
Note however, that the geometry compression utilities at this point don't
support the Level II compressed geometry format which is required to compress
texture coordinates, so you won't be able to compress anything that uses
textures. That support is planned for release 1.4 of Java 3D. I mention this
because I said on this list in the past that textures would be supported in
release 1.3, but that was before I found out that we wouldn't be able to do
this until 1.4.
-- Mark Hood
===========================================================================
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".