> Date:         Sat, 9 Oct 1999 17:19:22 +0530
> From: Rajesh Jain <[EMAIL PROTECTED]>
>
> I tried to write a compresser and decompressor for this.
> The compressor , derived from my Loader class, works fine
> in compressing the data.
>
> During decompressor I have a error message thats thown up
> during the scene rendering
>
> java.lang.IllegalStateException: GeometryDecompressorRetained:
> unexpected color in compressed buffer
>         at
> javax.media.j3d.GeometryDecompressorRetained.outputColor(Compiled Code)
>         at javax.media.j3d.GeometryDecompressor.processSetColor(Compiled
> Code)
>
> [..]
>
> I have no color information in my format.

This error results when the GeometryArray that the decompressor was trying
to output was created with a format that didn't specify colors, yet what
appeared to be a color was nonetheless encountered in the compressed data.

This could be a bug either in the Java 3D decompressor or in your compressor
implementation; it's not possible to tell with the given information.  If
your compressor was derived from the ObjectFileCompressor example code, then
it's possible that you may be getting default colors provided by the
ObjectFile superclass which you're not accounting for in creating the
compressed data.  Try using the CompressedGeometryFile class to write out a
.cg file of one of your smaller models and send it to me, and I'll take a
look at it.

We hope to have some compression verification tools available in a future
release of Java 3D.

> Also during compression of huge models (20MB data) I sometimes get error
> OutOfMemmory
> I am working on a Sun Ultra 60/1GB RAM

I haven't tried compressing anything that large myself yet.  I'll try a few
larger models with the Java 3D compressor and see what the memory
consumption looks like.  Try using the -Xmx switch to the Java interpreter
to increase the size of the virtual machine if you're not doing that
already.

We're actively maintaining and improving the Java 3D compressed geometry
utilities.  If you can verify memory leaks, performance problems, or other
bugs in the Java 3D compressor, let us know and we'll try to fix them.

-- 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".

Reply via email to