The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by amartins]

I would like to know how I can make a 3D application where exist a menu with
diferent objects (box, sphere, ...). When the program is running I want choose
in this menu one of these objects (for example a sphere) and then it appear in
the screen; then I choose another object (for example a box) and this one
appear too.

My problem is that when I choose the second object in menu I only can make
that one of the two following things happen: the first object disappear and
appear the second objrct instead; or nothing is changed.

Can you help on this?

I'm trying to do finish my course and I really need some help on this. I'm
trying to do a 3D modulator and is the first time that I work with Java and
Java 3D, as weel as with 3D applications.

Thanks in advance,

Best Regards
import-bot (20211) [Avatar] Offline
#2
Re: Put more than one object in the screen with the application running
[Originally posted by author]

Take a look at the book's DndApp. Ignore the DnD portions and just focus on
how new objects are instantiated and added to the scene graph.

good luck
--jon