Kelly,
> I have a program that loads multiple models and needs to allow the user to
> select which of the loaded models should be visible.
A Switch Node should do what you want. The Switch node will allow you to add 4 models
and selectively turn models on and off.
This is not the same as dynamically adding objects after the scene is live, for that
you have to set Group capabilities on the Groups where the objects are to be added.
You want the ALLOW_CHILDREN_EXTEND and probably the ALLOW_CHILDREN_READ,
ALLOW_CHILDREN_WRITE capabilities.
> Select wire frame or solid format for a geometry that is already loaded?
For this you want to modify the Appearance NodeComponent for a Shape3D object. The
Shape3D will need the ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE capabilities.
// create an appearance
Appearance ap = new Appearance();
// render as a wireframe
PolygonAttributes polyAttrbutes = new PolygonAttributes();
polyAttrbutes.setPolygonMode( PolygonAttributes.POLYGON_LINE );
polyAttrbutes.setCullFace( PolygonAttributes.CULL_NONE ) ;
ap.setPolygonAttributes( polyAttrbutes );
You will beed the ALLOW_MODE_READ, ALLOW_MODE_WRITE, ALLOW_CULL_FACE_READ,
ALLOW_CULL_FACE_WRITE capabilities on the PolygonAtrtributes object you assign to the
Appearance node.
I hope this helps, please respond with any comments as this is from my forthcoming
book on Java 3D, due out around New Year.
Sincerely,
Daniel Selman
[EMAIL PROTECTED]
http://www.tornadolabs.com
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kelly McClimans
> Sent: 24 August 1999 21:10
> To: [EMAIL PROTECTED]
> Subject: How do I....
>
>
> I have a program that loads multiple models and needs to allow the user to
> select which of the loaded models should be visible. I also need to show
> the model in a wire frame or solid view.
>
> How do I...
>
> Dynamically add models to an already existing universe?
>
> Select wire frame or solid format for a geometry that is already loaded?
>
> Thank You
> Kelly McClimans
> <><
>
>
> _______________________________________________________________
> Get Free Email and Do More On The Web. Visit http://www.msn.com
>
> ==================================================================
> =========
> 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".