Ernesto,

You need to add the "new" object to a BranchGroup (addChild) and then add
(also with addChild) the new BranchGroup to a parent scenegraph group
(BranchGroup or TransformGroup)that was created at start-up. The parent
scenegraph group must have the following permissions:

   setCapability( Group.ALLOW_CHILDREN_EXTEND );

and will probably also have:

  setCapability( Group.ALLOW_CHILDREN_READ );
  setCapability( Group.ALLOW_CHILDREN_WRITE );

Hope that helps.

Daniel Selman
Tornado Labs Ltd.

Email:   [EMAIL PROTECTED]
Web:     http://www.tornadolabs.com
Phone:   +44 (0131) 343 2513
Fax:     +44 07070 800 483



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ernesto
Sent: 09 May 1999 00:24
To: [EMAIL PROTECTED]
Subject: [java3d] how to show new objects


Hello all,

I have a question, maybe a stupid question.
What is the easiest way to show new "objects" (I mean spheres, cubes, etc.)
in response to an user's action (for example, a click on a button), without
redefine the entire scene graph?
Thank you in advance and excuse my English :-)

Ernesto J. C.
___________________________________________________



=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/


=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to