In my ongoing quest to reconcile a previously working Java3D1.1.3 program
with Java3D1.2, I have discovered that the following process has been broken
by the upgrade.
I have a class that extends BranchGroup and is a fairly complex sceneGraph
with a PathInterpolator, TransformGroups, other BranchGroups and Shape3Ds.
When I construct a new instance and add it to my universe there are no
problems. If I want to change part of its structure after it has been
constructed and added to the universe, things break down.
during the change I do
pathTG = new TransformGroup()
new RotPosPathInterpolator( alpha, pathTG , axisOfRotPos, knots,
quats, positions );
Then if I do
pathTG.addChild( hookBG );
I get
javax.media.j3d.MultipleParentException
which is to be expected since hookBG was previously added to pathTG during
the initial constructor.
But if I do this instead
pathTG.moveTo( hookBG );//works in v1.1.3 but not in v1.2
I get
java.lang.NullPointerException
at javax.media.j3d.RenderBin.processTransformChanged(RenderBin.java,
Compiled Code)
at javax.media.j3d.RenderBin.processMessages(RenderBin.java,
Compiled Code)
at
javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.java,
Compiled Code)
at javax.media.j3d.J3DThread.run(J3DThread.java:256)
Am I overlooking something?
Raffi
===========================================================================
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".