Hi Andreas,

    Two bugs is filed for this :

4730897 - CompressedGeometryState throws NullPointerException if header
lowerBound is null
4730961- SceneGraphIO throws ClassCastException when writing
CompressedGeometry

The first one can be workaround by explicitly setting lowerBound
and upperBound in CompressedGeometryHeader.

The second one need modification of scenegraphIO utility source code
CompressedGeometryState.java
in package com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d;
for the class to extend GeometryState instead of BehaviorState
in the distribution.

Thanks for your bug report.

- Kelvin
--------------------
Java 3D Team
Sun Microsystems Inc.



Andreas Jerke wrote:

> Hello,
>
> If my SceneGraph contains CompressedGeometry objects,
> I  get :
>
> java.lang.ClassCastException: javax.media.j3d.CompressedGeometry
>         at
> com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.NodeState.writeObj
> ect(NodeState.java:61)
>         at
> com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.BehaviorState.writ
> eObject(BehaviorState.java:72)
>         at
> com.sun.j3d.utils.scenegraph.io.retained.Controller.writeObject(Controll
> er.java:294)
>         at
> com.sun.j3d.utils.scenegraph.io.retained.RandomAccessFileControl.writeOb
> ject(RandomAccessFileControl.java:399)
>         at
> com.sun.j3d.utils.scenegraph.io.retained.RandomAccessFileControl.writeNo
> deComponents(RandomAccessFileControl.java:358)
>         at
> com.sun.j3d.utils.scenegraph.io.retained.RandomAccessFileControl.writeBr
> anchGraph(RandomAccessFileControl.java:219)
>         at com.sun.j3d.utils.scenegraph.io.SceneGrStarted Thread
> aphFileWriter.writeBranchGraph(SceneGraphFileWriter.java:129)
>         at
> com.sun.j3d.utils.scenegraph.io.SceneGraphFileWriter.writeBranchGraph(Sc
> eneGraphFileWriter.java:117)
>
>
> while writing to stream with SceneGraphIO.
> I'm using j3d 1.3b2 .
> I think there is missing CompressedGeometryState in the package.
>
>
> Regards,
> Andreas
>
> ===========================================================================
> 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".
>

===========================================================================
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