Question about switching visible content on screen

Hello. I want to make a 3d menu (each entry in the menu will be as a cube with a text texture on it, and they will be mouse selectable). One of the menu entries is “options” and when the user clicks on it, I want every cube for the main menu to disappear and all the cubes with the entries in the “options” menu to become visible (one of them will be “back” which will link back to the main menu).

I don’t know much about how to handle objects in branch groups and locales… so the question is: I want to load all of the cubes at the start of the program, but how do I make visible only those for the main menu, and then make them invisible and show the others for the “options” menu?

Have a look at javax.media.j3d.Switch. It is a special kind of group that uses a bit mask to determine which children are visible.

Also have a look at this to see if it’s what you need: http://www.alphaworks.ibm.com/tech/river