Brad:
You have discoverd a bug in 1.2.1 (beta2 and FCS version). I have filed
a bug
4427436 - Alternate Appearance may throw exception when scoped to a
sharedGroup.
This bug occurs when you have a scenegraph of form
BG0
/ \
/ \
/ \
TG1 BG1
\ |
\ TG2
\ / \
L1 L2 \
\ / Altapp
\ /
\ /
SG
|
Shape3D
and you scope the AltApp to SG. Is that the scenario you have? A workaround
for this bug is to add TG1 and TG2 to the alternateapperance scope list instead
of the sharedGroup SG.
Also, your email seems to imply AlternateAppearance under a sharedGroup - this
is illegal in Java3D.
-Uma
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
> Importance: Normal
> Date: Mon, 19 Mar 2001 12:51:44 -0700
> From: Brad Cain <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Problem with AlternateAppearance
> To: [EMAIL PROTECTED]
>
> 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".
===========================================================================
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".