Hello all -
I am attempting to use AlternateAppearance to highlight a part in an
assembly viewer. I've done this in the past without incident, but now
a very strange thing is happening. When I insert the BranchGroup
containing the AlternateAppearance into the (live) scenegraph, I get
the following exception:
java.lang.RuntimeException: Shape3DRetained: MirrorShape Not found!
at javax.media.j3d.Shape3DRetained.getMirrorShape(Shape3DRetained.java:2048)
at javax.media.j3d.Shape3DRetained.getMirrorShape3D(Shape3DRetained.java:1628)
at
javax.media.j3d.GroupRetained.addAllNodesForScopedAltApp(GroupRetained.java:879)
at
javax.media.j3d.AlternateAppearanceRetained.setLive(AlternateAppearanceRetained.java:522)
at javax.media.j3d.GroupRetained.doSetLive(GroupRetained.java:1808)
at javax.media.j3d.BranchGroupRetained.setLive(BranchGroupRetained.java:107)
at javax.media.j3d.GroupRetained.checkSetLive(GroupRetained.java:1300)
at javax.media.j3d.GroupRetained.checkSetLive(GroupRetained.java:1110)
at javax.media.j3d.GroupRetained.doAddChild(GroupRetained.java:508)
at javax.media.j3d.GroupRetained.addChild(GroupRetained.java:457)
at javax.media.j3d.Group.addChild(Group.java:261)
at com.ci.spit.assembly.SharedPart.highlight(SharedPart.java:106)
I'm pretty sure that I'm doing something wrong here; the trouble is that
this exception is exceptionally unhelpful. What the heck is a MirrorShape?
A bit more info: I'm using addScope() to limit the scope of the AltApp to the
part I want highlighted. If I comment out the addScope() call, the highlighting
"works" - that is, I don't get an exception, I merely see the entire model
highlighted (since I'm not limiting the scope). I'm attaching the AltApp
BranchGroup to a SharedGroup node, but I've also tried attaching it a couple
of different places with no effect. I've set all the required capability bits -
I think - and I've called setAppearanceOverrideEnable(true) on the Shape3D
components.
Oh yeah, and this is version 1.2.1, running atop OpenGL on Win2000.
Thanks in advance,
Brad
--------------------------
Conceptual Integrity, Inc.
970.495.0646
[EMAIL PROTECTED]
===========================================================================
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".