Thanks for your test program. Bug 4822988 - SceneGraphIO throws NullPointerException when Morph Node is read
is submitted for this. The problem is in utility com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/MorphState.java
which is fixed in the next J3D v1.3.1 release.
- Kelvin -------------- Java 3D Team Sun Microsystems Inc.
Ma TSeng Shiao wrote:
Hello everybody! My nickname is zaskwach. I'm a newby in the java3D API.
I'm trying to make a custom "animation file" that includes a morph node with a 2-component GeometryArray array and a weight array attached to a BranchGroup Node. Then I saved the BrachGraph structure with a RandomAccessFileControl stream of the scenegraph.io.retained package (I got the same problem with the SceneGraphFileReader/Writer of the scenegraph.io package)
The file is saved without any problem. But when I try to read the BranchGraph with the method readBranchGraph() , a NullPointerException is thown. The pricise point of failure is indicated at the readObject() method of the MorphState method when it tries to read the weight array. The strange thing is that it works perfectly with any other leaf node but the
morph node.
I hope you can give me a hand with this.
Thanks. -- Ma TSeng Shiao [EMAIL PROTECTED]
-- http://www.fastmail.fm - Choose from over 50 domains or use your own
=========================================================================== 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".