Have you tried putting them in a switch node and turning them off before
detaching/re-attaching? Would be interesting to see if this would make a
"cleaner" detach. I will try your example tonight.
Dave Yazel
> ----------
> From: J. Lee Dixon[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Tuesday, August 29, 2000 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] HELP! Re-attach of BranchGraph() with >1 lights
> Importance: High
>
> <<File: TestBed4.java>><<File: TestBed4.class>><<File:
> SelectBehavior.class>><<File: test4.html>>
> HELP!!
>
> I've been fighting with this bug for several days now, and I think I
> have it narrowed down. Like one of my previous posts, I have an example
> application that allows the user to move cones from one box to another
> by clicking on the cone, then clicking on the next box. The detaching
> and re-attaching from the scene is done using BranchGraphs.
>
> Well, I have a big problem that when a BranchGraph is reattached, OTHER
> PARTS OF THE SCENE DISAPPEAR. I have found that this only happens when
> THE BRANCH GRAPH HAS 2 OR MORE LIGHTS IN ITS HIERARCHY. (It took many
> hours of freakish misery to figure this out.) The disappearing scene
> objects are still in the scene, because you CAN select them. It is as
> if there was a call to RenderingAttributes.setVisible(false) for their
> Appearances.
>
> Can somebody PLEASE try this application/applet out on their machines.
> I've tried it on three machines. Actually, the bug only randomly
> happens if there are 2 lights attached to each cone's BranchGraph, but
> by bumping it up to 8 lights, it always seems to happen. There is a
> constant at the top of the class to alter this number. (Yes, there are
> less than 64 lights in the scene.)
>
> CAN SOMEBODY AT SUN TRY THIS???
>
> Thanks...
>
> J. Lee Dixon
> Software Engineer
> SAIC - Celebration, FL
> [EMAIL PROTECTED]
>
>
>
> <<TestBed4.java>> <<TestBed4.class>> <<SelectBehavior.class>>
> <<test4.html>>
>
===========================================================================
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".