Hi,

Yes you can! Here's an excerpt from my code:

        // Create a Canvas 3D
        canvas3D = new Canvas3D(null);

        // Create a simple universe.
        universe = new SimpleUniverse(canvas3D);

        // Create the root of the branch graph
        // Allow the capability to add new children at run-time.
       sceneRoot = new BranchGroup();
       sceneRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);

        // Compile the scene graph.
        sceneRoot.compile();

        // Add the scene to the universe.
        universe.addBranchGraph(sceneRoot);

       // Add object at run-time
       BranchGroup bg = new BranchGroup();
       bg.addChild(object);
       sceneRoot.addChild(bg);

It's that simple, have fun!

St�phane Vermette

-----Original Message-----
From: sophia <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: December 3, 1999 2:41 PM
Subject: [JAVA3D] adding objects dynamically


>Is there a way that I can add objects (Shape 3D) to an existing Java 3D
>scene while it is running?
>
>===========================================================================
>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".

Reply via email to