Hi
I have written a Java Loader similar to the Wavefront loader
but it uses a different format ( to load out CAD parts)
The data is written as a set of vertices , normals and faces (vertex
index/normal index)
like concatinating a series of Wavefront .obj files into a single file
and
reading all of them into the Scene as seperate 3D objects.
Now it works fine in all cases in uncompressed form.
There is a preformance issue for huge models ( having
more a couple of million triangles) ,the java
loader goes belly up.
For this I am tackling the problem on two fonts ( Disk I/O) and
Rendering in java.
For the second, I thought compression is the best way out.
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)
at
javax.media.j3d.GeometryDecompressor.processDecompressionOpcode(Compiled
Code)
at
javax.media.j3d.GeometryDecompressor.processDecompression(Compiled Code)
at javax.media.j3d.GeometryDecompressor.decompress(Compiled
Code)
at
javax.media.j3d.GeometryDecompressorRetained.decompress(Compiled Code)
at
javax.media.j3d.CompressedGeometryRetained.getGeometry(Compiled Code)
at javax.media.j3d.Renderer.run(Compiled Code)
I have no color information in my format.
----------------------------------------
Also during compression of huge models (20MB data) I sometimes get error
OutOfMemmory
I am working on a Sun Ultra 60/1GB RAM
Any info on this would be of great help.
thanx
--
Rajesh Jain ([EMAIL PROTECTED])
Parametric Technology Corp
http://www.ptc.com
===========================================================================
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".