BS Contact J: Java-API : Dynamic Node Creation

Sorry, your browser doesn't support Java.

Dynamic Addition and Removal of Nodes

This example shows, how to add/remove nodes on the fly.This functionality is once again achieved through an second applet, extending BS Contact J's functionality.

Whenever a new node should be inserted, it is created via the createX3DFromURL-method. The overgiven URL is loaded, parsed and created by BS Contact J. The created nodes are then returned in the onEvent-method of the applet. When receiving new parsed nodes the applet inserts them into the scenegraph using the setValueNodeArray function of BS Contact J.


Download source, binary