And what about updating a scene graph in a swing component event
handler?

Sometimes, my program has strange behavior when I
set the Transform of a TransformGroup from these
Swing events handler.

A copy of the shape3D connected to the old transform stay
in place and the real shape3D is moved to the desire
position. On the screen, there is two copies of the same
objet. It's a spontaneous creation of java3d (or god, I
don't know!??)

This doesn't occur frequently (about 1/500 clicks on a
Swing component) but it's very annoying!

In an another case, I've tried to remove the branchgraph
before changing the transform, and the old shape3d became
a kind of phantom shape3D and was throwing an exception
when I click on it.

very scary stuff, I need help

I think that it's and problem of synchronisation between
the swing and java3d thread but I don't know how to
resolve this problem.

Any help are welcome


> >Is it safe to update a live scene graph (assuming the appropriate
> >capabilities are set) from inside a Canvas3D mouse/keyboard event handler?
> >
>
> Yes, it should be safe.
>
> >Otherwise, is it the case that you can ONLY update a live scene graph safely
> >by either detaching the appropriate BranchGroup or from a Behavior?

If it's the case, when do you remove your BranchGroup safely?

===========================================================================
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".

Reply via email to